wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



close_comments_for_post_types › WordPress Filter Hooks

Seit3.2.0
Veraltetn/v
apply_filters( 'close_comments_for_post_types', array( 'post' )
Parameter:
  • (string[]) $post_types An array of post type names.
    Erforderlich: Ja
Definiert in:
Codex:

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





Quellcode

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