WordPress开发者和主题制作者的搜索引擎



pre_untrash_post ›

Since4.9.0
已弃用n/a
apply_filters( 'pre_untrash_post', null, $post )
参数: (2)
  • (bool) $untrash Whether to go forward with untrashing.
    Required: Yes
  • (WP_Post) $post Post object.
    Required: Yes
定义在:
文档:

Filters whether a post untrashing should take place.





源码

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