reCAPTCHA::get_settings_fields()

Returns the available settings fields for the submodule.

Description

See also

Return

(array) Associative array of <code>$field_slug => $field_args</code> pairs.

Source

File: src/modules/protectors/recaptcha.php

	public function get_settings_fields() {
		$settings_fields = parent::get_settings_fields();

		$settings_fields['site_key'] = array(
			'section'       => 'credentials',
			'type'          => 'text',
			'label'         => _x( 'Site Key', 'reCAPTCHA', 'torro-forms' ),
			/* translators: %s: URL to Google reCAPTCHA console */
			'description'   => sprintf( __( 'The public site key of your website for Google reCAPTCHA. You can get one <a href="%s" target="_blank">here</a>.', 'torro-forms' ), 'https://www.google.com/recaptcha/admin' ),
			'input_classes' => array( 'regular-text' ),
		);

		$settings_fields['secret_key'] = array(
			'section'       => 'credentials',
			'type'          => 'text',
			'label'         => _x( 'Secret', 'reCAPTCHA', 'torro-forms' ),
			/* translators: %s: URL to Google reCAPTCHA console */
			'description'   => sprintf( __( 'The secret key of your website for Google reCAPTCHA. You can get one <a href="%s" target="_blank">here</a>.', 'torro-forms' ), 'https://www.google.com/recaptcha/admin' ),
			'input_classes' => array( 'regular-text' ),
		);

		return $settings_fields;
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.