Description
Validates whether this comment is allowed to be made or not.
Usage
<?php wp_allow_comment( $commentdata, $avoid_die ) ?>
Parameters
- $commentdata
- (array) (required) Contains information on the comment
- Default: None
- $avoid_die
- (boolean) (optional) When true, a disallowed comment will result in the function returning a WP_Error object, rather than executing wp_die()
- Default: false
Return Values
- (mixed)
- Signifies the approval status (0|1|'spam')
Examples
Notes
Change Log
Since: 2.0.0
Source File
wp_allow_comment() is located in wp-includes/comment.php
.
Related