Plugin Hooks » AntiSpam_Form


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

Add-ons Using "AntiSpam_Form"

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

AddonHook Argument
Anti Spam Math
AntiSpamSFS

Where "AntiSpam_Form" is Called

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

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

Lines 38 through 56

    static function GetForm($theme='dark'){
        global 
$config;

        
$html '';
        if( 
gp_recaptcha::hasRecaptcha() ){
            
includeFile('thirdparty/recaptcha/autoload.php');
            
$html '<script src="https://www.google.com/recaptcha/api.js" async defer></script>';
            
$html .= '<div class="g-recaptcha" data-theme="'.$theme.'" data-sitekey="'.$config['recaptcha_public'].'"></div>'//data-size="compact"
        
}

        return 
gpPlugin::Filter('AntiSpam_Form',array($html));
    }

    
/**
     * Ouptut the html of a recaptcha area for use in a  <form>
     * @static

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