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



comments_open ›

Desde2.5.0
Obsoleton/a
apply_filters( 'comments_open', $open, $post_id )
Parâmetros: (2)
  • (bool) $open Whether the current post is open for comments.
    Required: Yes
  • (int) $post_id The post ID.
    Required: Yes
Definido em:
Codex:

Filters whether the current post is open for comments.





Fonte

return apply_filters( 'comments_open', $open, $post_id );