Filter hook 'wp_unique_post_slug_is_bad_flat_slug'

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

Description

Filters whether the post slug would be bad as a flat slug.

Occurrences

Filename Line Number
wp-includes/post.php 5300

Parameters

Type Name Description
bool $bad_slug Whether the post slug would be bad as a flat slug.
string $slug The post slug.
string $post_type Post type.

PHP Doc

/**
		 * Filters whether the post slug would be bad as a flat slug.
		 *
		 * @since 3.1.0
		 *
		 * @param bool   $bad_slug  Whether the post slug would be bad as a flat slug.
		 * @param string $slug      The post slug.
		 * @param string $post_type Post type.
		 */