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.7.2

apply_filters('add_trashed_suffix_to_trashed_posts') is found 1 times:

  • /wp-includes/post.php line 4678
    4674
    4675
    4676
    4677
    4678
    4679
    4680
    4681
    4682
    4683
         * @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 );
        }
    }