Extension:Comments/Hooks/Comments::isSpam
Appearance
(Redirected from Manual:Hooks/Comments::isSpam)
For more information about attaching hooks, see Manual:Hooks .
For examples of other extensions using this hook, see Category:Comments::isSpam extensions.
The Comments::isSpam hook is called in the method with the same name, to determine if the supplied input (&$text
) is spam or not. Subscribers can set the return value of &$retVal
to true
to indicate that the input is spam and to halt the adding of a comment determined to contain spam.
As of Q3/2025 only the SpamRegex extension makes use of this hook.