WordPress.org

Ready to get started?Download WordPress

Codex

Attention 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 ?>

Parameters

$commentdata
(array) (required) Contains information on the comment
Default: None

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.