reCAPTCHA::get_meta_fields()

Returns the available meta 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_meta_fields() {
		$meta_fields = parent::get_meta_fields();

		$meta_fields['enabled'] = array(
			'type'         => 'checkbox',
			'label'        => _x( 'Add captcha at the end of the form.', 'protector', 'torro-forms' ),
			'visual_label' => _x( 'Google reCAPTCHA', 'protector', 'torro-forms' ),
		);

		$meta_fields['type'] = array(
			'type'    => 'select',
			'label'   => _x( 'Type', 'reCAPTCHA', 'torro-forms' ),
			'choices' => array(
				'image' => _x( 'Image', 'reCAPTCHA type', 'torro-forms' ),
				'audio' => _x( 'Audio', 'reCAPTCHA type', 'torro-forms' ),
			),
		);

		$meta_fields['size'] = array(
			'type'    => 'select',
			'label'   => _x( 'Size', 'reCAPTCHA', 'torro-forms' ),
			'choices' => array(
				'normal'  => _x( 'Normal', 'reCAPTCHA size', 'torro-forms' ),
				'compact' => _x( 'Compact', 'reCAPTCHA size', 'torro-forms' ),
			),
		);

		$meta_fields['theme'] = array(
			'type'    => 'select',
			'label'   => _x( 'Theme', 'reCAPTCHA', 'torro-forms' ),
			'choices' => array(
				'light' => _x( 'Light', 'reCAPTCHA theme', 'torro-forms' ),
				'dark'  => _x( 'Dark', 'reCAPTCHA theme', 'torro-forms' ),
			),
		);

		return $meta_fields;
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.