add_action( "init", function() { foreach ( [ "rank_math_title", "rank_math_description", "rank_math_focus_keyword", "rank_math_robots" ] as $key ) { register_post_meta( "post", $key, [ "show_in_rest" => true, "single" => true, "type" => "string", "auth_callback" => function() { return current_user_can( "edit_posts" ); }, ] ); } } );
Ir al contenido