admin管理员组文章数量:1134601
I have a setup where I embed some entities in my blogposts (products essentially) and then I have written a script and added to functions.php
where I can all an API to get some metadata about each product.
I've successfully used plugins to insert PHP snippets but it has the same caveat as the other solutions I've found: they only allow for the same snippet to be run. What I need to figure out how to call my function with a different parameter each time and not just a once-and-for-all embed of the same call.
getMetadata(link1)
getMetadata(link2)
Could someone guide me towards a solution or the outlines of one?
本文标签: functionsEmbed dynamic php snippets with parameters in a blogpost
版权声明:本文标题:functions - Embed dynamic php snippets with parameters in a blogpost 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736843591a1955206.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论