Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

wp_allow_comment()

3 tags 1 category

wp_allow_comment() — Validates whether this comment is allowed to be made.

Inputs: $commentdata (array): Contains information on the comment. $wp_error (bool): 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’). WP_Error if the comment is a duplicate or a flood and $wp_error is true, or if the ‘pre_comment_approved’ filter returns one.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…