wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_protected_ajax_actions › WordPress过滤钩子

Since5.2.0
已弃用n/a
apply_filters( 'wp_protected_ajax_actions', $actions_to_protect )
参数:
  • (string[]) $actions_to_protect Array of strings with Ajax actions to protect.
    Required: Yes
定义在:
文档:

Filters the array of protected Ajax actions.

This filter is only fired when doing Ajax and the Ajax request has an 'action' property.





源码

$actions_to_protect = (array) apply_filters( 'wp_protected_ajax_actions', $actions_to_protect );