admin管理员组文章数量:1023213
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.
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.
本文标签: How to use the WordPress API to get links and scripts in ltheadgt and ltbodygt
版权声明:本文标题:How to use the WordPress API to get links and scripts in <head> and <body> 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745598890a2158336.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论