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



pre_comment_approved ›

Desde4.9.0
Obsoleton/a
apply_filters( 'pre_comment_approved', $approved, $commentdata )
Parâmetros: (2)
  • (int|string|WP_Error) $approved The approval status. Accepts 1, 0, 'spam' or WP_Error.
    Required: Yes
  • (array) $commentdata Comment data.
    Required: Yes
Definido em:
Codex:

Filters a comment's approval status before it is set.





Fonte

$approved = apply_filters( 'pre_comment_approved', $approved, $commentdata );