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



pre_untrash_post › WordPress过滤钩子

Since5.6.0
已弃用n/a
› apply_filters( 'pre_untrash_post', null, $post, $previous_status )
参数: (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
定义在:
文档:

Filters whether a post untrashing should take place.





源码

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