add_trashed_suffix_to_trashed_posts

add_trashed_suffix_to_trashed_posts

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('add_trashed_suffix_to_trashed_posts') is found 1 times:

  • /wp-includes/post.php line 4446
    		 * @param bool   $add_trashed_suffix Whether to attempt to add the suffix.
    		 * @param string $post_name          The name of the post being updated.
    		 * @param int    $post_id            Post ID.
    		 */
    		$add_trashed_suffix = apply_filters( 'add_trashed_suffix_to_trashed_posts', true, $post_name, $post_id );
    
    		if ( $add_trashed_suffix ) {
    			wp_add_trashed_suffix_to_post_name_for_trashed_posts( $post_name, $post_id );
    		}
    	}