Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-includes/post.php | apply_filters | 5034 | /** * Filters whether the post slug would make a bad attachment slug. * * @since 3.1.0 * * @param bool $bad_slug Whether the slug would be bad as an attachment slug. * @param string $slug The post slug. */ |
Hook Parameters
Parameter Type | Name | Description |
---|---|---|
bool | $bad_slug | Whether the slug would be bad as an attachment slug. |
string | $slug | The post slug. |