wp_check_comment_disallowed_list WordPress Action Hook
The wp_check_comment_disallowed_list Wordpress hook is used to check if a comment is on the disallowed list. This can be used to moderate comments or to block certain types of comments.
do_action( 'wp_check_comment_disallowed_list', string $author , string $email , string $url , string $comment , string $user_ip , string $user_agent ) #
Fires before the comment is tested for disallowed characters or words.
Parameters
- $author
(string)Comment author.
(string)Comment author's email.
- $url
(string)Comment author's URL.
- $comment
(string)Comment content.
- $user_ip
(string)Comment author's IP address.
- $user_agent
(string)Comment author's browser user agent.
Source
File: wp-includes/comment.php
Changelog
Version | Description |
---|---|
5.5.0 | Introduced. |