wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



add_trashed_suffix_to_trashed_posts › Les Filtres WordPress

Depuis5.4.0
Dépréciéen/a
› apply_filters( 'add_trashed_suffix_to_trashed_posts', true, $post_name, $post_id )
Paramètres: (3)
  • () add_trashed_suffix Whether to attempt to add the suffix.
    Requis: Oui
  • () post_name The name of the post being updated.
    Requis: Oui
  • () post_id Post ID.
    Requis: Oui
Défini(e) dans:
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 );