W3cubDocs

/WordPress

apply_filters( 'pre_untrash_post', bool|null $untrash, WP_Post $post )

Filters whether a post untrashing should take place.

Parameters

$untrash

(bool|null) Whether to go forward with untrashing.

$post

(WP_Post) Post object.

Source

File: wp-includes/post.php

View on Trac

Changelog

Version Description
4.9.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/pre_untrash_post