Plugin Hooks » AntiSpam_Check


Hook Details
Typefilter
Available Since2.3.3
Latest Version Used4.6.1

Add-ons Using "AntiSpam_Check"

Below is a list of all add-ons that have implemented the "AntiSpam_Check" hook by defining it in their addon.ini file.

AddonHook Argument
Anti Spam Math
AntiSpamSFS

Where "AntiSpam_Check" is Called

Below is quick look at where "AntiSpam_Check" is implemented within the Typesetter code.

Package:   Typesetter Core File:   Typesetter/include/tool/recaptcha.php Line: 69

Lines 59 through 77


/**
 * Verify the user submitted form by checking anti-spam hooks and/or recaptcha if they exist
 * @static
 *
 */
static function Check(){
    global 
$page,$langmessage,$config,$dataDir;

    
// if hooks return false, stop
    
if( !gpPlugin::Filter('AntiSpam_Check',array(true)) ) return false;

    
// if recaptcha inactive, stop
    
if( !gp_recaptcha::hasRecaptcha() ) return true;

    if( empty(
$_POST['g-recaptcha-response']) ){

View the complete file ( GitHub.com )


Need a new hook for your addon?
Let us know, we're more than happy to accommodate!

News

Typesetter 5.1
8/12/2017

Typesetter 5.0.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

Over 8 Times Faster Than Wordpress
5/3/2016

We've known for a long time that Typesetter is fast. It's something we take pride ... Read More

More News

creisi productions

Dienstleistungen von creisi productions, Luzern (Schweiz): * Konzeption, Planung und Erstellung Ihres Internet-Auftritts * Betreuung und Aktualisierung/Pflege Ihrer Website * ...

Find out more about our Provider Spotlight

Log In

  Register