Access_Control::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/access-control.php

	public function get_meta_fields() {
		$meta_fields = $this->_get_meta_fields();

		$meta_fields['enabled'] = array(
			'type'         => 'checkbox',
			'label'        => _x( 'Enable?', 'access control', 'torro-forms' ),
			'visual_label' => _x( 'Status', 'access control', 'torro-forms' ),
		);

		return $meta_fields;
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.