Captcha::ap_question_form_fields( array $form )
Description #
Add captcha field in question and answer form.
Parameters #
- $formarray (Required) Form arguments.
Source #
File: addons/recaptcha/recaptcha.php
public function ap_question_form_fields( $form ) {
if ( ap_show_captcha_to_user() ) {
$form['fields']['captcha'] = array(
'label' => __( 'Prove that you are a human', 'anspress-question-answer' ),
'type' => 'captcha',
'order' => 100,
);
}
return $form;
}
Expand full source code Collapse full source code View on GitHub: addons/recaptcha/recaptcha.php:144
Add your comment