pre_untrash_post

最后更新于:2021-11-27 20:29:09

apply_filters( ‘pre_untrash_post’, bool|null $untrash, GC_Post $post, string $previous_status )

Filters whether a post untrashing should take place.

参数

$untrash

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

$post

(GC_Post)
Post object.

$previous_status

(string)
The status of the post at the point where it was trashed.

源文件

文件: gc-includes/post.php

View on Trac