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

In this article

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

Parameters

$bad_slugbool
Whether the post slug would be bad in a hierarchical post context.
$slugstring
The post slug.
$post_typestring
Post type.
$post_parentint
Post parent ID.

Source

$is_bad_hierarchical_slug = apply_filters( 'wp_unique_post_slug_is_bad_hierarchical_slug', false, $slug, $post_type, $post_parent );

Changelog

VersionDescription
3.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.