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



add_trashed_suffix_to_trashed_posts › WordPress过滤钩子

Since5.4.0
已弃用n/a
› apply_filters( 'add_trashed_suffix_to_trashed_posts', true, $post_name, $post_id )
参数: (3)
  • () add_trashed_suffix Whether to attempt to add the suffix.
    Required: Yes
  • () post_name The name of the post being updated.
    Required: Yes
  • () post_id Post ID.
    Required: Yes
定义在:
文档:

Filters whether or not to add a `__trashed` suffix to the name of trashed posts that match the name of the updated post.





源码

$add_trashed_suffix = apply_filters( 'add_trashed_suffix_to_trashed_posts', true, $post_name, $post_id );