wp_unique_post_slug

wp_unique_post_slug

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('wp_unique_post_slug') is found 1 times:

  • /wp-includes/post.php line 5498
    	 * @param string $post_type     Post type.
    	 * @param int    $post_parent   Post parent ID
    	 * @param string $original_slug The original post slug.
    	 */
    	return apply_filters( 'wp_unique_post_slug', $slug, $post_id, $post_status, $post_type, $post_parent, $original_slug );
    }
    
    /**
     * Truncates a post slug.
     *
     * @since 3.6.0
    

See this hook used in plugins:

Examples using wp_unique_post_slug