How to fetch YOAST SEO plugin data using WP REST API plugin ? Specially the wpseo_head hook content

微笑、不失礼 提交于 2021-02-07 03:37:56

问题


I'm using WP REST API to fetch all the post data. Well, it works perfectly, but the major concern for any website is the SEO part. I'm using YOAST SEO plugin. I want to fetch all the Meta tags it creates in the Head section of HTML.

FYI im using Wordpress as Backend and Nodejs in frontend.


The solution is simple. I have added custom endpoints in the function.php file. You can see this Adding Custom Endpoints

来源:https://stackoverflow.com/questions/37290983/how-to-fetch-yoast-seo-plugin-data-using-wp-rest-api-plugin-specially-the-wpse

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!