WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/wp allow comment

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

See also index of Function Reference and index of Template Tags.