add_trashed_suffix_to_trashed_posts хук-фильтр . WP 5.4.0
Filters whether or not to add a __trashed suffix to trashed posts that match the name of the updated post.
Использование
add_filter( 'add_trashed_suffix_to_trashed_posts', 'filter_function_name_5797', 10, 3 ); function filter_function_name_5797( $add_trashed_suffix, $post_name, $post_ID ){ // filter... return $add_trashed_suffix; }
- $add_trashed_suffix(true/false)
- Whether to attempt to add the suffix.
- $post_name(строка)
- The name of the post being updated.
- $post_ID(число)
- Post ID.
Список изменений
С версии 5.4.0 | Введена. |
Где вызывается хук
add_trashed_suffix_to_trashed_posts
wp-includes/post.php 3963
$add_trashed_suffix = apply_filters( 'add_trashed_suffix_to_trashed_posts', true, $post_name, $post_ID );