apply_filters( 'wp_unique_post_slug_is_bad_hierarchical_slug', bool $bad_slug, string $slug, string $post_type, int $post_parent )

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


Parameters

$bad_slug

Whether the post slug would be bad in a hierarchical post context.

$slug

The post slug.

$post_type

Post type.

$post_parent

Post parent ID.


Source

File: wp-includes/post.php

View on GitHub



Changelog

Changelog
Version Description
WP-3.1.0 Introduced.