wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_allow_comment › WordPress Function

Since2.0.0
Deprecatedn/a
wp_allow_comment ( $commentdata, $wp_error = false )
Parameters: (2)
  • (array) $commentdata Contains information on the comment.
    Required: Yes
  • (bool) $wp_error When true, a disallowed comment will result in the function returning a WP_Error object, rather than executing wp_die(). Default false.
    Required: No
    Default: false
Returns:
  • (int|string|WP_Error) Allowed comments return the approval status (0|1|'spam'|'trash').
    If `$wp_error` is true, disallowed comments return a WP_Error.
Defined at:
Codex:
Change Log:
  • 4.7.0
  • 5.5.0

Validates whether this comment is allowed to be made.



Source

Soon...