// 1) Expose les custom post types publics au REST (events, bios…) add_filter('register_post_type_args', function ($args, $name) { if (!empty($args['public'])) { $args['show_in_rest'] = true; if (empty($args['rest_base'])) $args['rest_base'] = $name; } return $args; }, 20, 2); // 2) Champs REST dédiés qui lisent/écrivent DIRECTEMENT le postmeta Yoast add_action('rest_api_init', function () { foreach (get_post_types(['public' => true]) as $type) { register_rest_field($type, 'yoast_metadesc', [ 'get_callback' => fn($o) => get_post_meta($o['id'], '_yoast_wpseo_metadesc', true), 'update_callback' => function ($val, $obj) { if (current_user_can('edit_post', $obj->ID)) update_post_meta($obj->ID, '_yoast_wpseo_metadesc', sanitize_text_field($val)); }, 'schema' => ['type' => 'string'], ]); register_rest_field($type, 'yoast_noindex', [ 'get_callback' => fn($o) => get_post_meta($o['id'], '_yoast_wpseo_meta-robots-noindex', true), 'update_callback' => function ($val, $obj) { if (current_user_can('edit_post', $obj->ID)) update_post_meta($obj->ID, '_yoast_wpseo_meta-robots-noindex', sanitize_text_field($val)); }, 'schema' => ['type' => 'string'], ]); } });

Your Procedure

Jones Radiology offers a comprehensive range of diagnostic and interventional radiology services including MRI, CT, Ultrasound, X-ray, Mammography, MSK Interventional Procedures, Nuclear Medicine and PET.