} return $accessible_post_types; } /** * Get accessible post types. * * @codeCoverageIgnore * * @return array */ public static function get_allowed_post_types() { static $rank_math_allowed_post_types; if ( isset( $rank_math_allowed_post_types ) ) { return $rank_math_allowed_post_types; } $rank_math_allowed_post_types = []; foreach ( self::get_accessible_post_types() as $post_type ) { if ( false === apply_filters( 'rank_math/metabox/add_seo_metabox', Helper::get_settings( 'titles.pt_' . $post_type . '_add_meta_box', true ) ) ) { continue; } $rank_math_allowed_post_types[] = $post_type; } return $rank_math_allowed_post_types; } }
Fatal error: Trait "RankMath\Helpers\Post_Type" not found in /htdocs/chien-unique.fr/wp-content/plugins/seo-by-rank-math/includes/class-helper.php on line 32