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 bool
Whether the post slug would be bad as a flat slug.
$slug string
The post slug.
$post_type string
Post type.

Top ↑

Source

File: wp-includes/post.php. View all references

$is_bad_flat_slug = apply_filters( 'wp_unique_post_slug_is_bad_flat_slug', false, $slug, $post_type );


Top ↑

Changelog

Changelog
Version Description
3.1.0 Introduced.

Top ↑

User Contributed Notes

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