有没有人成功将Yoast SEO插件数据打印到WP REST API json中?我能够 grab 主要类别,但我还没有找到如何获取SEO Headers 和元描述 .
找到这个不错的插件:https://github.com/ChazUK/wp-api-yoast-seo
要更新值,您可以尝试在“register_rest_field”函数中添加回调到“update_callback”,如doc示例中所示:
https://developer.wordpress.org/rest-api/extending-the-rest-api/modifying-responses/
1 回答
找到这个不错的插件:https://github.com/ChazUK/wp-api-yoast-seo
要更新值,您可以尝试在“register_rest_field”函数中添加回调到“update_callback”,如doc示例中所示:
https://developer.wordpress.org/rest-api/extending-the-rest-api/modifying-responses/