-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
MemberPress
committed
Jan 16, 2024
1 parent
bb96190
commit e7459ca
Showing
33 changed files
with
1,079 additions
and
638 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php if ( ! defined('ABSPATH')) { | ||
die('You are not allowed to call this page directly.'); | ||
} | ||
|
||
class MeprGrowthToolsCtrl extends MeprBaseCtrl | ||
{ | ||
public function load_hooks() | ||
{ | ||
if (class_exists('\MemberPress\Caseproof\GrowthTools\App')) { | ||
add_action('admin_enqueue_scripts', function () { | ||
$screen = get_current_screen(); | ||
if ($screen->id == 'memberpress_page_memberpress-growth-tools') { | ||
wp_enqueue_style('memberpress-onboarding', MEPR_CSS_URL . '/admin-onboarding.css', [], MEPR_VERSION); | ||
} | ||
}); | ||
$config = new \MemberPress\Caseproof\GrowthTools\Config([ | ||
'parentMenuSlug' => 'memberpress', | ||
'instanceId' => 'memberpress', | ||
'menuSlug' => 'memberpress-growth-tools', | ||
'buttonCSSClasses' => ['mepr-wizard-button-blue'], | ||
]); | ||
new \MemberPress\Caseproof\GrowthTools\App($config); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.