Events trigger a notification only if they are specified in the register call.
仅当在注册调用中指定了事件时,事件才会触发一个通知。
After your function is defined, the next step is to "hook" or register it with WordPress. To do this, call add_filter in the global execution space of your plugin file.
完成你的函数的编写后,下一步就是将其hook(勾入)或者说注册到WordPress中,你可以通过执行全局空间中的add_filter函数来实现,如。
After your function is defined, the next step is to "hook" or register it with WordPress. To do this, call add_action in the global execution space of your plugin file.
完成你的函数的编写后,下一步就是将其hook(勾入)或者说注册到WordPress中,你可以通过执行全局空间中的add_action函数来实现,如。
应用推荐