Filter hook 'wp_unique_post_slug_is_bad_hierarchical_slug'

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

Description

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

Occurrences

Filename Line Number
wp-includes/post.php 5244

Parameters

Type Name Description
bool $bad_slug Whether the post slug would be bad in a hierarchical post context.
string $slug The post slug.
string $post_type Post type.
int $post_parent Post parent ID.

PHP Doc

/**
		 * Filters whether the post slug would make a bad hierarchical post slug.
		 *
		 * @since 3.1.0
		 *
		 * @param bool   $bad_slug    Whether the post slug would be bad in a hierarchical post context.
		 * @param string $slug        The post slug.
		 * @param string $post_type   Post type.
		 * @param int    $post_parent Post parent ID.
		 */