AnsPress_reCcaptcha::init()
Description #
Initialize the plugin by setting localization and loading public scripts and styles.
Source #
File: addons/free/recaptcha.php
public static function init() { ap_add_default_options([ 'recaptcha_method' => 'post', ]); anspress()->add_action( 'ap_form_addon-free_recaptcha', __CLASS__, 'options' ); anspress()->add_action( 'ap_question_form_fields', __CLASS__, 'ap_question_form_fields', 10, 2 ); anspress()->add_action( 'ap_answer_form_fields', __CLASS__, 'ap_question_form_fields', 10, 2 ); anspress()->add_action( 'ap_comment_form_fields', __CLASS__, 'ap_question_form_fields', 10, 2 ); }
Expand full source code Collapse full source code View on GitHub: addons/free/recaptcha.php:44
Add your comment