Filter hook 'wp_unique_post_slug_is_bad_attachment_slug'

in WP Core File wp-includes/post.php at line 5208

Description

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

Occurrences

Filename Line Number
wp-includes/post.php 5208

Parameters

Type Name Description
bool $bad_slug Whether the slug would be bad as an attachment slug.
string $slug The post slug.

PHP Doc

/**
		 * Filters whether the post slug would make a bad attachment slug.
		 *
		 * @since 3.1.0
		 *
		 * @param bool   $bad_slug Whether the slug would be bad as an attachment slug.
		 * @param string $slug     The post slug.
		 */