wp_allow_comment
wp_allow_comment ( $commentdata, $wp_error = false )
Parameters:- (array) commentdata Contains information on the comment.
- (bool) wp_error When true, a disallowed comment will result in the function returning a WP_Error object, rather than executing wp_die(). Default false.
Returns:- (int|string|WP_Error) Allowed comments return the approval status (0|1|'spam'|'trash'). If `$wp_error` is true, disallowed comments return a WP_Error.
Defined at:Change Log: - Introduced in WordPress: 2.0.0
- Deprecated in WordPress: —
Description
Validates whether this comment is allowed to be made.