ns() { $all_opts = rank_math()->settings->all_raw(); $general = $all_opts['general']; $sitemap = $all_opts['sitemap']; if ( empty( $sitemap['video_sitemap_post_type'] ) ) { $sitemap['video_sitemap_post_type'] = array_values( Helper::get_accessible_post_types() ); } if ( empty( $general['google_updates'] ) ) { $general['google_updates'] = 'on'; } if ( empty( $general['auto_add_focus_keywords'] ) ) { $general['auto_add_focus_keywords'] = [ 'enable_auto_import' => 1, 'post_types' => [ 'post', 'page' ], ]; } if ( empty( $general['noindex_hidden_products'] ) ) { $general['noindex_hidden_products'] = 'on'; } $podcast_options = [ 'podcast_title' => '%sitename%', 'podcast_description' => '%sitedesc%', 'podcast_explicit' => 'off', ]; foreach ( $podcast_options as $key => $value ) { if ( empty( $general[ $key ] ) ) { $general[ $key ] = $value; } } Helper::update_all_settings( $general, null, $sitemap ); $this->enable_default_modules(); } /** * Enable PRO modules that should be active by default on fresh installs. */ private function enable_default_modules() { Helper::update_modules( [ 'marketplace' => 'on' ] ); } }
Fatal error: Uncaught Error: Class "RankMathPro\Installer" not found in /htdocs/emploitogo.info/wp-content/plugins/seo-by-rank-math-pro/rank-math-pro.php:141 Stack trace: #0 /htdocs/emploitogo.info/wp-content/plugins/seo-by-rank-math-pro/rank-math-pro.php(126): RankMathPro->__construct() #1 /htdocs/emploitogo.info/wp-content/plugins/seo-by-rank-math-pro/rank-math-pro.php(570): RankMathPro::get() #2 /htdocs/emploitogo.info/wp-content/plugins/seo-by-rank-math-pro/rank-math-pro.php(574): rank_math_pro() #3 /htdocs/emploitogo.info/wp-settings.php(589): include_once('/htdocs/emploit...') #4 /htdocs/emploitogo.info/wp-config.php(112): require_once('/htdocs/emploit...') #5 /htdocs/emploitogo.info/wp-load.php(50): require_once('/htdocs/emploit...') #6 /htdocs/emploitogo.info/wp-blog-header.php(13): require_once('/htdocs/emploit...') #7 /htdocs/emploitogo.info/index.php(17): require('/htdocs/emploit...') #8 {main} thrown in /htdocs/emploitogo.info/wp-content/plugins/seo-by-rank-math-pro/rank-math-pro.php on line 141