WordPress at a glance
filter is not described

wp_unique_post_slug_is_bad_attachment_slug filter-hook . WP 3.1.0

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

Usage

add_filter( 'wp_unique_post_slug_is_bad_attachment_slug', 'filter_function_name_4408', 10, 2 );
function filter_function_name_4408( $bad_slug, $slug ){
	// filter...

	return $bad_slug;
}
$bad_slug(true/false)
Whether the slug would be bad as an attachment slug.
$slug(string)
The post slug.

Changelog

Since 3.1.0 Introduced.

Where the hook is called

wp_unique_post_slug()
wp_unique_post_slug_is_bad_attachment_slug
wp-includes/post.php 4589
$is_bad_attachment_slug = apply_filters( 'wp_unique_post_slug_is_bad_attachment_slug', false, $slug );

Where in WP core the hook is used WordPress

Usage not found.