Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-includes/comment.php | apply_filters | 826 | /** * Filters a comment's approval status before it is set. * * @since 2.1.0 * @since 4.9.0 Returning a WP_Error value from the filter will short-circuit comment insertion * and allow skipping further processing. * * @param int|string|WP_Error $approved The approval status. Accepts 1, 0, 'spam', 'trash', * or WP_Error. * @param array $commentdata Comment data. */ |
Hook Parameters
Parameter Type | Name | Description |
---|---|---|
int|string|WP_Error | $approved | The approval status. Accepts 1, 0, 'spam', 'trash', |
array | $commentdata | Comment data. |