Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-includes/post.php | apply_filters | 5070 | /** * 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. */ |
Hook Parameters
Parameter 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. |