wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



add_trashed_suffix_to_trashed_posts › Hooks de Filtros WordPress

Desde5.4.0
Obsoleton/a
› apply_filters( 'add_trashed_suffix_to_trashed_posts', true, $post_name, $post_id )
Parâmetros: (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
Definido em:
Codex:

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





Fonte

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