Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_unique_post_slug_is_bad_flat_slug ›

Da3.1.0
Deprecaton/a
apply_filters( 'wp_unique_post_slug_is_bad_flat_slug', false, $slug, $post_type )
Parametri: (3)
  • (bool) $bad_slug Whether the post slug would be bad as a flat slug.
    Richiesto:
  • (string) $slug The post slug.
    Richiesto:
  • (string) $post_type Post type.
    Richiesto:
Definito a:
Codex:

Filters whether the post slug would be bad as a flat slug.





Sorgenti

if ( $post_name_check || in_array( $slug, $feeds ) || 'embed' === $slug || $conflicts_with_date_archive || apply_filters( 'wp_unique_post_slug_is_bad_flat_slug', false, $slug, $post_type ) ) {