How to use the WordPress API to get links and scripts in <head> and <body>

I'm using the WordPress API as a headless CMS. I have Elementor plugin installed to do page building in the WordPre

I'm using the WordPress API as a headless CMS. I have Elementor plugin installed to do page building in the WordPress admin.

I'm trying to figure out how to get all of the <link> and <script> tags that Elementor requires via the WordPress API. The API right now for /pages only gives me the rendered HTML from the_content().

Is there a way to extend WordPress API /pages to either:

  • Return the <head> links and scripts and any <body> links and scripts?
  • Return the full HTML for a page, from <html> to </html>?

My backup solution is to use a screen scraping tool to get the full HTML, but I'd rather avoid doing that.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745598891a4635281.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信