Submission_Count::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/access-controls/submission-count.php

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

		$meta_fields['total_submissions_limit'] = array(
			'type'         => 'number',
			'label'        => __( 'Total Submissions Limit', 'torro-forms' ),
			'description'  => __( 'Enter the total amount of submissions that are allowed to be submitted for this form.', 'torro-forms' ),
			'min'          => 0,
			'step'         => 1,
			'default'      => 100,
			'wrap_classes' => array( 'has-torro-tooltip-description' ),
		);
		$meta_fields['total_submissions_reached_message'] = array(
			'type'          => 'text',
			'label'         => __( '&#8220;Total submissions reached&#8221; Message', 'torro-forms' ),
			'description'   => __( 'Enter the message to show to the user when a sufficient amount of submissions have already been completed.', 'torro-forms' ),
			'default'       => $this->get_default_total_submissions_reached_message(),
			'input_classes' => array( 'regular-text' ),
			'wrap_classes'  => array( 'has-torro-tooltip-description' ),
		);

		return $meta_fields;
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.