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



wp_unique_post_slug_is_bad_hierarchical_slug › Les Filtres WordPress

Depuis3.1.0
Dépréciéen/a
› apply_filters( 'wp_unique_post_slug_is_bad_hierarchical_slug', false, $slug, $post_type, $post_parent )
Paramètres: (4)
  • () bad_slug Whether the post slug would be bad in a hierarchical post context.
    Requis: Oui
  • () slug The post slug.
    Requis: Oui
  • () post_type Post type.
    Requis: Oui
  • () post_parent Post parent ID.
    Requis: Oui
Défini(e) dans:
Codex:

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





Source

$is_bad_hierarchical_slug = apply_filters( 'wp_unique_post_slug_is_bad_hierarchical_slug', false, $slug, $post_type, $post_parent );