Has anyone succeeded printing Yoast SEO plugin data into WP REST API json? I was able to grab the primary category, but I have yet to find out how to grab SEO title and meta description.
Found this nice plugin: https://github.com/ChazUK/wp-api-yoast-seo
For updating the values you can try adding a callback to "update_callback" in the "register_rest_field" function as in the doc example:
https://developer.wordpress.org/rest-api/extending-the-rest-api/modifying-responses/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With