Un motore di ricerca WordPress per sviluppatori e autori di temi



close_comments_for_post_types ›

Da3.2.0
Deprecaton/a
apply_filters( 'close_comments_for_post_types', array( 'post' )
Parametri:
  • (string[]) $post_types An array of post type names.
    Richiesto:
Definito a:
Codex:

Filters the list of post types to automatically close comments for.





Sorgenti

$post_types = apply_filters( 'close_comments_for_post_types', array( 'post' ) );