A WordPress-centric search engine for devs and theme authors



pre_trash_post ›

Since4.9.0
Deprecatedn/a
apply_filters( 'pre_trash_post', null, $post )
Parameters: (2)
  • (bool) $trash Whether to go forward with trashing.
    Required: Yes
  • (WP_Post) $post Post object.
    Required: Yes
Defined at:
Codex:

Filters whether a post trashing should take place.





Source

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