$handle => $src ) { wp_enqueue_style( $handle, $src, [], rank_math()->version, $media_query ); } } Helper::add_json( 'elementorDarkMode', $dark_styles ); wp_enqueue_script( 'rank-math-editor', rank_math()->plugin_url() . 'includes/3rdparty/elementor/assets/js/elementor.js', $deps, rank_math()->version, true ); rank_math()->variables->setup(); rank_math()->variables->setup_json(); } /** * Filters the post content before it is parsed for Sitmeap images.. * Used to apply the Elementor page editor on the post content. * * @since 1.0.38 * * @param string $content The post content. * @param int $post_id The post ID. * * @return string The post content. */ public function apply_builder_in_content( $content, $post_id ) { if ( \Elementor\Plugin::$instance->db->is_built_with_elementor( $post_id ) ) { return \Elementor\Plugin::$instance->frontend->get_builder_content( $post_id ); } return $content; } /** * Add SEO tab in Elementor Page Builder. * * @return bool */ private function can_add_seo_tab() { /** * Filter to show/hide SEO Tab in the Elementor Editor. */ if ( ! $this->do_filter( 'elementor/add_seo_tab', true ) ) { return false; } $post_type = isset( $_GET['post'] ) ? get_post_type( absint( $_GET['post'] ) ) : ''; if ( $post_type && ! Helper::get_settings( 'titles.pt_' . $post_type . '_add_meta_box' ) ) { return false; } return Editor::can_add_editor(); } /** * Change robots for Elementor Templates pages * * @param array $robots Array of robots to sanitize. * * @return array Modified robots. */ public function robots( $robots ) { if ( is_singular( 'elementor_library' ) ) { $robots['index'] = 'noindex'; $robots['follow'] = 'nofollow'; } return $robots; } }
Fatal error: Uncaught Error: Class "RankMath\Elementor\Elementor" not found in /htdocs/wp-content/plugins/seo-by-rank-math/rank-math.php:405 Stack trace: #0 /htdocs/wp-content/plugins/seo-by-rank-math/rank-math.php(308): RankMath->load_3rd_party() #1 /htdocs/wp-content/plugins/seo-by-rank-math/rank-math.php(185): RankMath->instantiate() #2 /htdocs/wp-content/plugins/seo-by-rank-math/rank-math.php(164): RankMath->setup() #3 /htdocs/wp-content/plugins/seo-by-rank-math/rank-math.php(539): RankMath::get() #4 /htdocs/wp-content/plugins/seo-by-rank-math/rank-math.php(543): rank_math() #5 /htdocs/wp-settings.php(589): include_once('/htdocs/wp-cont...') #6 /htdocs/wp-config.php(103): require_once('/htdocs/wp-sett...') #7 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #8 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #9 /htdocs/index.php(17): require('/htdocs/wp-blog...') #10 {main} thrown in /htdocs/wp-content/plugins/seo-by-rank-math/rank-math.php on line 405