wpseek.com
A WordPress-centric search engine for devs and theme authors



pre_untrash_post › WordPress Filter Hooks

Since5.6.0
Deprecatedn/a
apply_filters( 'pre_untrash_post', null, $post, $previous_status )
Parameters: (3)
  • () untrash Whether to go forward with untrashing.
    Required: Yes
  • () post Post object.
    Required: Yes
  • () previous_status The status of the post at the point where it was trashed.
    Required: Yes
Defined at:
Codex:

Filters whether a post untrashing should take place.





Source

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