Captcha::__construct()
Description #
Initialize the plugin by setting localization and loading public scripts and styles.
Source #
File: addons/recaptcha/recaptcha.php
protected function __construct() { ap_add_default_options( [ 'recaptcha_method' => 'post', 'recaptcha_exclude_roles' => [ 'ap_moderator' => 1 ], ]); anspress()->add_action( 'wp_enqueue_scripts', $this, 'enqueue_scripts' ); anspress()->add_action( 'ap_form_addon-recaptcha', $this, 'options' ); anspress()->add_action( 'ap_question_form_fields', $this, 'ap_question_form_fields', 10, 2 ); anspress()->add_action( 'ap_answer_form_fields', $this, 'ap_question_form_fields', 10, 2 ); anspress()->add_action( 'ap_comment_form_fields', $this, 'ap_question_form_fields', 10, 2 ); }
Expand full source code Collapse full source code View on GitHub: addons/recaptcha/recaptcha.php:47
Add your comment