run(); } public function run() { if ( $this->enabled() ) { add_filter( 'autoptimize_filter_settingsscreen_tabs', array( $this, 'add_pro_tabs' ), 10, 1 ); } if ( is_multisite() && is_network_admin() && autoptimizeOptionWrapper::is_ao_active_for_network() ) { add_action( 'network_admin_menu', array( $this, 'add_admin_menu' ) ); } else { add_action( 'admin_menu', array( $this, 'add_admin_menu' ) ); } } protected function enabled() { return apply_filters( 'autoptimize_filter_show_partner_tabs', true ); } public function add_pro_tabs( $in ) { $in = array_merge( $in, array( 'ao_protab' => '🚀 ' . $this->get_rnd_title() ) ); return $in; } public function add_admin_menu() { if ( $this->enabled() ) { add_submenu_page( '', 'AO pro', 'AO pro', 'manage_options', 'ao_protab', array( $this, 'ao_pro_page' ) ); } } public function ao_pro_page() { ?>

', '', '

', '

', '', '', '', '', '', '' ); } else { // we were able to fetch the explenation, so add the JS to show correct language. $aopro_explanation .= ""; } ?>
rnd_title = esc_html__( 'Page Cache', 'autoptimize' ); } else { $this->rnd_title = esc_html__( 'Pro Boosters', 'autoptimize' ); } return $this->rnd_title; } }