wpseek.com
A WordPress-centric search engine for devs and theme authors



add_trashed_suffix_to_trashed_posts › WordPress Filter Hooks

Since5.4.0
Deprecatedn/a
apply_filters( 'add_trashed_suffix_to_trashed_posts', true, $post_name, $post_id )
Parameters: (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
Defined at:
Codex:

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





Source

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