Uma área de pesquisa sobre o WordPress para devs e autores do tema



close_comments_for_post_types ›

Desde3.2.0
Obsoleton/a
apply_filters( 'close_comments_for_post_types', array( 'post' )
Parâmetros:
  • (string[]) $post_types An array of post type names.
    Required: Yes
Definido em:
Codex:

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





Fonte

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