WordPress at a glance
filter is not described

wp_unique_post_slug_is_bad_hierarchical_slug filter-hook . WP 3.1.0

Filters whether the post slug would make a bad hierarchical post slug.


add_filter( 'wp_unique_post_slug_is_bad_hierarchical_slug', 'filter_function_name_3033', 10, 4 );
function filter_function_name_3033( $bad_slug, $slug, $post_type, $post_parent ){
	// filter...

	return $bad_slug;
Whether the post slug would be bad in a hierarchical post context.
The post slug.
Post type.
Post parent ID.


Since 3.1.0 Introduced.

Where the hook is called

wp-includes/post.php 4419
if ( $post_name_check || in_array( $slug, $feeds ) || 'embed' === $slug || preg_match( "@^($wp_rewrite->pagination_base)?\d+$@", $slug ) || apply_filters( 'wp_unique_post_slug_is_bad_hierarchical_slug', false, $slug, $post_type, $post_parent ) ) {

Where in WP core the hook is used

Usage not found!