Honeypot::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/honeypot.php

	public function get_meta_fields() {
		$meta_fields = parent::get_meta_fields();

		$meta_fields['skip_field_label'] = array(
			'type'          => 'text',
			'label'         => __( 'Skip Field Label', 'torro-forms' ),
			'description'   => __( 'Enter the label to show for the honeypot field. This should indicate that the user must not fill it in.', 'torro-forms' ),
			'default'       => $this->get_default_skip_field_label(),
			'input_classes' => array( 'regular-text' ),
			'wrap_classes'  => array( 'has-torro-tooltip-description' ),
		);

		return $meta_fields;
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.