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



wp_unique_post_slug_is_bad_attachment_slug › WordPress Filter Hooks

Da3.1.0
Deprecaton/a
› apply_filters( 'wp_unique_post_slug_is_bad_attachment_slug', false, $slug )
Parametri: (2)
  • () bad_slug Whether the slug would be bad as an attachment slug.
    Richiesto: Sì
  • () slug The post slug.
    Richiesto: Sì
Definito a:
Codex:

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





Sorgenti

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