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_1804', 10, 2 );
function filter_function_name_1804( $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.

Список изменений

С версии 3.1.0 Введена.

Где вызывается хук

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

Где используется хук в ядре WordPress

Использование не найдено.