wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_unique_post_slug_is_bad_hierarchical_slug › WordPress Filter Hooks

Da3.1.0
Deprecaton/a
› apply_filters( 'wp_unique_post_slug_is_bad_hierarchical_slug', false, $slug, $post_type, $post_parent )
Parametri: (4)
  • () bad_slug Whether the post slug would be bad in a hierarchical post context.
    Richiesto: Sì
  • () slug The post slug.
    Richiesto: Sì
  • () post_type Post type.
    Richiesto: Sì
  • () post_parent Post parent ID.
    Richiesto: Sì
Definito a:
Codex:

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





Sorgenti

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