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



get_default_comment_status › WordPress Filter Hooks

Da4.3.0
Deprecaton/a
apply_filters( 'get_default_comment_status', $status, $post_type, $comment_type )
Parametri: (3)
  • (string) $status Default status for the given post type, either 'open' or 'closed'.
    Richiesto:
  • (string) $post_type Post type. Default is `post`.
    Richiesto:
  • (string) $comment_type Type of comment. Default is `comment`.
    Richiesto:
Definito a:
Codex:

Filters the default comment status for the given post type.





Sorgenti

return apply_filters( 'get_default_comment_status', $status, $post_type, $comment_type );