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



wp_unique_post_slug_is_bad_flat_slug › Filtr WordPress Hooks

Od3.1.0
Przestarzałyn/a
› apply_filters( 'wp_unique_post_slug_is_bad_flat_slug', false, $slug, $post_type )
Parametry: (3)
  • () bad_slug Whether the post slug would be bad as a flat slug.
    Wymagane: Tak
  • () slug The post slug.
    Wymagane: Tak
  • () post_type Post type.
    Wymagane: Tak
Zdefiniowane na:
Codex:

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





Źródło

$is_bad_flat_slug = apply_filters( 'wp_unique_post_slug_is_bad_flat_slug', false, $slug, $post_type );