A WordPress-centric search engine for devs and theme authors



pre_untrash_post ›

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

Filters whether a post untrashing should take place.





Source

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