A WordPress-centric search engine for devs and theme authors



close_comments_for_post_types ›

Since3.2.0
Deprecatedn/a
apply_filters( 'close_comments_for_post_types', array( 'post' )
Parameters:
  • (string[]) $post_types An array of post type names.
    Required: Yes
Defined at:
Codex:

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





Source

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