2020-05-01 / 3937阅 / 悠然
Check whether a comment passes internal checks to be allowed to add.
If manual comment moderation is set in the administration, then all checks, regardless of their type and whitelist, will fail and the function will return false.
If the number of links exceeds the amount in the administration, then the check fails. If any of the parameter contents match the blacklist of words, then the check fails.
If the comment author was approved before, then the comment is automatically whitelisted.
If all checks pass, the function will return true.
(string)
(Required)
Comment author name.
(string)
(Required)
Comment author email.
(string)
(Required)
Comment author URL.
(string)
(Required)
Content of the comment.
(string)
(Required)
Comment author IP address.
(string)
(Required)
Comment author User-Agent.
(string)
(Required)
Comment type, either user-submitted comment, trackback, or pingback.
(bool) If all checks pass, true, otherwise false.