On this page
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_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
File: wp-includes/post.php. View all references
$is_bad_hierarchical_slug = apply_filters( 'wp_unique_post_slug_is_bad_hierarchical_slug', false, $slug, $post_type, $post_parent );
Related
Used By
| Used By | Description |
|---|---|
| wp_unique_post_slug() wp-includes/post.php | Computes a unique slug for the post, when given the desired slug and some post details. |
Changelog
| Version | Description |
|---|---|
| 3.1.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_unique_post_slug_is_bad_hierarchical_slug