apply_filters( 'wp_unique_post_slug_is_bad_flat_slug', bool $bad_slug , string $slug , string $post_type )
Filters whether the post slug would be bad as a flat slug.
Parameters
- $bad_slug
-
Whether the post slug would be bad as a flat slug.
- $slug
-
The post slug.
- $post_type
-
Post type.
Source
File: wp-includes/post.php
Changelog
Version | Description |
---|---|
WP-3.1.0 | Introduced. |