AnsPress_reCcaptcha::options()
Description #
Register Categories options
Source #
File: addons/free/recaptcha.php
public static function options() {
$opt = ap_opt();
$form = array(
'fields' => array(
'recaptcha_site_key' => array(
'label' => __( 'Recaptcha site key', 'anspress-question-answer' ),
'desc' => __( 'Enter your site key, if you dont have it get it from here https://www.google.com/recaptcha/admin', 'anspress-question-answer' ),
'value' => $opt['recaptcha_site_key'],
),
'recaptcha_secret_key' => array(
'label' => __( 'Recaptcha secret key', 'anspress-question-answer' ),
'desc' => __( 'Enter your secret key', 'anspress-question-answer' ),
'value' => $opt['recaptcha_secret_key'],
),
'recaptcha_method' => array(
'label' => __( 'Recaptcha Method', 'anspress-question-answer' ),
'desc' => __( 'Select method to use when verification keeps failing', 'anspress-question-answer' ),
'type' => 'select',
'options' => array(
'curl' => 'CURL',
'post' => 'POST',
),
'value' => $opt['recaptcha_method'],
),
),
);
return $form;
}
Expand full source code Collapse full source code View on GitHub: addons/free/recaptcha.php:58
Add your comment