admin管理员组文章数量:1328377
I am new to creating blocks in the editor but have practiced with a couple tuts. I have been able to create a block that is able to use ServerSideRender, but after reading am I correct to think it is rendered on the frontend?
I am wondering if there is a way to create a block, call a php function, return a html output, and save the block as html output. So it does not have to render the php function each time the block is called.
Am I suppose to use REST or can you use Ajax some how?
The reason is because there is a custom table in the database that I would like to get information from and put it into the block, but I would rather not call the table multiple times in the frontend.
Thanks
本文标签: ajaxGutenberg blockSave PHP function39s output as HTML
版权声明:本文标题:ajax - Gutenberg block - Save PHP function's output as HTML? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742228841a2436837.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论