wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



add_trashed_suffix_to_trashed_posts › WordPress Filter Hooks

Seit5.4.0
Veraltetn/v
apply_filters( 'add_trashed_suffix_to_trashed_posts', true, $post_name, $post_id )
Parameter: (3)
  • () add_trashed_suffix Whether to attempt to add the suffix.
    Erforderlich: Ja
  • () post_name The name of the post being updated.
    Erforderlich: Ja
  • () post_id Post ID.
    Erforderlich: Ja
Definiert in:
Codex:

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





Quellcode

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