page_title = 'Search & Replace Everything'; $this->menu_title = 'Search & Replace'; parent::__construct(); } /** * Register hook on admin init just for this page. * * @return void */ public function page_hooks() { add_action( 'admin_init', array( $this, 'maybe_redirect_to_search_replace' ) ); } /** * Override to hide default header on this page. * * @return void */ public function output_header() { } /** * Redirect to the search replace page if the plugin is active. * * @return void */ public function maybe_redirect_to_search_replace() { if ( function_exists( 'wsrw_main' ) ) { wp_safe_redirect( admin_url( 'tools.php?page=wsrw-search-replace' ) ); exit; } } /** * The page output. * * @return void */ public function output_content() { ?>

Search & Replace Everything by WPCode