add_action('init', function () {
register_post_meta('post', '_yoast_wpseo_metadesc', [
'type' => 'string',
'single' => true,
'show_in_rest' => true,
'auth_callback'=> function() {
return current_user_can('edit_posts');
},
]);
}); add_action('init', function () {
register_post_meta('post', 'rank_math_description', [
'type' => 'string',
'single' => true,
'show_in_rest' => true,
'auth_callback'=> function() {
return current_user_can('edit_posts');
},
]);
});