add_trashed_suffix_to_trashed_posts WordPress Filter Hook

The add_trashed_suffix_to_trashed_posts hook is used to add a suffix to the post title of a post that has been trashed. This is useful for distinguishing between posts that have been trashed and those that have not.

apply_filters( 'add_trashed_suffix_to_trashed_posts', bool $add_trashed_suffix, string $post_name, int $post_ID ) #

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


Parameters

$add_trashed_suffix

(bool)Whether to attempt to add the suffix.

$post_name

(string)The name of the post being updated.

$post_ID

(int)Post ID.


Top ↑

Source

File: wp-includes/post.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More