Besides the hooks (actions and filters) described above, another way for a plugin to modify WordPress's behavior is to override WordPress functions.
除了前面描述的hook(包括action和filter)之外,另一个修改WordPress行为的插件编写方法是覆盖WordPress函数。
One cool new feature for developers is that now also templates can register themselves inside the plugin API hooks to execute specific things, that don't require installation of an event plugin.
我们给开发者提供了一个很酷的新功能,在模板中可以注册插件api,来执行一些特殊的需求。本功能不需要安装任何事件组件。
应用推荐