deactivation_cleanup(); } ); /** * Review request framework */ new ADCmdr\Vendor\WOWPRB\WPPluginReviewBug( __FILE__, 'ad-commander', array( 'intro' => __( 'Your reviews are invaluable to Ad Commander and help us maintain a free version of this plugin. We appreciate your support! If you need assistance, please visit the support section of this plugin.', 'ad-commander' ), 'rate_link_text' => __( 'Leave ★★★★★ rating', 'ad-commander' ), 'need_help_text' => __( 'I need help', 'ad-commander' ), 'remind_link_text' => __( 'Remind me later', 'ad-commander' ), 'nobug_link_text' => __( 'Don\'t ask again', 'ad-commander' ), ), array( 'need_help_url' => ADCmdr\Admin::support_admin_url(), ) ); /** * Initialize; plugins_loaded */ add_action( 'plugins_loaded', function () { /** * Has the plugin version updated? */ ADCmdr\Install::maybe_update(); /** * Initiate classes and their hooks. */ $classes = array( 'ADCmdr\PostTypes', 'ADCmdr\Block', 'ADCmdr\Admin', 'ADCmdr\Maintenance', 'ADCmdr\Placement', 'ADCmdr\Frontend', 'ADCmdr\AdsTxt', 'ADCmdr\ProBridge', 'ADCmdr\Amp', ); foreach ( $classes as $class ) { $instance = new $class(); if ( method_exists( $instance, 'hooks' ) ) { $instance->hooks(); } } }, 10 );