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



wp_unique_post_slug_is_bad_attachment_slug › Filtr WordPress Hooks

Od3.1.0
Przestarzałyn/a
› apply_filters( 'wp_unique_post_slug_is_bad_attachment_slug', false, $slug )
Parametry: (2)
  • () bad_slug Whether the slug would be bad as an attachment slug.
    Wymagane: Tak
  • () slug The post slug.
    Wymagane: Tak
Zdefiniowane na:
Codex:

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





Źródło

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