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



pre_trash_post ›

Since4.9.0
已弃用n/a
apply_filters( 'pre_trash_post', null, $post )
参数: (2)
  • (bool) $trash Whether to go forward with trashing.
    Required: Yes
  • (WP_Post) $post Post object.
    Required: Yes
定义在:
文档:

Filters whether a post trashing should take place.





源码

$check = apply_filters( 'pre_trash_post', null, $post );