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



pre_delete_post › WordPress过滤钩子

Since4.4.0
已弃用n/a
› apply_filters( 'pre_delete_post', null, $post, $force_delete )
参数: (3)
  • () check Whether to go forward with deletion. Anything other than null will short-circuit deletion.
    Required: Yes
  • () post Post object.
    Required: Yes
  • () force_delete Whether to bypass the Trash.
    Required: Yes
定义在:
文档:

Filters whether a post deletion should take place.





源码

$check = apply_filters( 'pre_delete_post', null, $post, $force_delete );