apply_filters( ‘wp_unique_post_slug_is_bad_attachment_slug’, bool $bad_slug, string $slug )

In this article

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

Parameters

$bad_slugbool
Whether the slug would be bad as an attachment slug.
$slugstring
The post slug.

Source

$is_bad_attachment_slug = apply_filters( 'wp_unique_post_slug_is_bad_attachment_slug', false, $slug );

Changelog

VersionDescription
3.1.0Introduced.

User Contributed Notes

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