wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



add_trashed_suffix_to_trashed_posts › Filtr WordPress Hooks

Od5.4.0
Przestarzałyn/a
› apply_filters( 'add_trashed_suffix_to_trashed_posts', true, $post_name, $post_id )
Parametry: (3)
  • () add_trashed_suffix Whether to attempt to add the suffix.
    Wymagane: Tak
  • () post_name The name of the post being updated.
    Wymagane: Tak
  • () post_id Post ID.
    Wymagane: Tak
Zdefiniowane na:
Codex:

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





Źródło

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