Removing Graph Schema data From API JSON output
-
We use the free version of the Yoast SEO plugin and we have run into an issue where we need to remove the graph schema data from the API. Per the API documentation, we added this exact code to our functions.php
//Removes the Yoast Graph Schema From The API
add_filter( ‘wpseo_json_ld_output’, ‘__return_false’ );
//End removal of graph schema from APIWhen we run a request through Postman of:
ourdomain.com/wp-json/wp/v2/posts/9580
We receive a succusful 200 response and we see the data, *including* the Yoast schema data. We have cleared the server cache, restarted Postman, etc..but it still shows, so I’m wondering if that directive still works. Is there a way to actually remove it?
Thanks for any help you can provide.
–Sean
- The topic ‘Removing Graph Schema data From API JSON output’ is closed to new replies.