admin管理员组文章数量:1335599
So I'm creating Custom Post Type, and I have 3 external classes with namespace Test\Events\Model; Those 3 classes are final class Location, final class Event, and final class Person. Example of method:
public function street(): string
{
return 'Street name 2';
}`
For template, I'm using single-event.php. My question is, How to hook all those classes and their methods? Everything I have tried it's not working, so I'm missing something for sure.
Thank you all!
本文标签:
版权声明:本文标题:plugin development - Correct way adding External classes to Custom Post type and output their methods to template 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742393910a2466534.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论