AnsPress_reCcaptcha::ap_question_form_fields( array $form )

Description #

Add captcha field in question and answer form.

Parameters #

  • $form
    array (Required) Form arguments.

Changelog #

VersionDescription
4.1.0Introduced.

Source #

File: addons/free/recaptcha.php

	public static 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;
	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment