Update meta_value in wp_postmeta using API
I can’t really recreate the error. Are you sure the script is properly loaded? function get_post_details ($params) { return rest_ensure_response( ‘Hello World, this is the WordPress REST API’ ); } // Register the rest route here. add_action( ‘rest_api_init’, function () { register_rest_route( ‘post_info’, ‘post’,array( ‘methods’ => ‘GET’, ‘callback’ => ‘get_post_details’ )); }); This gave me … Read more