wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_unique_post_slug_is_bad_hierarchical_slug › Filtr WordPress Hooks

Od3.1.0
Przestarzałyn/a
› apply_filters( 'wp_unique_post_slug_is_bad_hierarchical_slug', false, $slug, $post_type, $post_parent )
Parametry: (4)
  • () bad_slug Whether the post slug would be bad in a hierarchical post context.
    Wymagane: Tak
  • () slug The post slug.
    Wymagane: Tak
  • () post_type Post type.
    Wymagane: Tak
  • () post_parent Post parent ID.
    Wymagane: Tak
Zdefiniowane na:
Codex:

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





Źródło

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