HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux bsx-1-dev 6.8.0-101-generic #101-Ubuntu SMP PREEMPT_DYNAMIC Mon Feb 9 10:15:05 UTC 2026 x86_64
User: www-data (33)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/memberpress/app/controllers/MeprGrowthToolsCtrl.php
<?php

if (! defined('ABSPATH')) {
    die('You are not allowed to call this page directly.');
}

class MeprGrowthToolsCtrl extends MeprBaseCtrl
{
    /**
     * Load hooks.
     *
     * @return void
     */
    public function load_hooks()
    {
        if (version_compare(phpversion(), '7.4', '>=') && 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);
        }
    }
}