wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



wp_unique_post_slug_is_bad_attachment_slug › Les Filtres WordPress

Depuis3.1.0
Dépréciéen/a
› apply_filters( 'wp_unique_post_slug_is_bad_attachment_slug', false, $slug )
Paramètres: (2)
  • () bad_slug Whether the slug would be bad as an attachment slug.
    Requis: Oui
  • () slug The post slug.
    Requis: Oui
Défini(e) dans:
Codex:

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





Source

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