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



pre_delete_attachment › WordPress过滤钩子

Since5.5.0
已弃用n/a
› apply_filters( 'pre_delete_attachment', null, $post, $force_delete )
参数: (3)
  • () delete Whether to go forward with deletion.
    Required: Yes
  • () post Post object.
    Required: Yes
  • () force_delete Whether to bypass the Trash.
    Required: Yes
定义在:
文档:

Filters whether an attachment deletion should take place.





源码

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