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/timerange.php
public function get_meta_fields() { $meta_fields = parent::get_meta_fields(); unset( $meta_fields['enabled'] ); $meta_fields['start'] = array( 'type' => 'datetime', 'label' => __( 'Start Date', 'torro-forms' ), 'description' => __( 'Select the date this form should be opened.', 'torro-forms' ), 'store' => 'datetime', 'wrap_classes' => array( 'has-torro-tooltip-description' ), ); $meta_fields['end'] = array( 'type' => 'datetime', 'label' => __( 'End Date', 'torro-forms' ), 'description' => __( 'Select the date this form should be closed.', 'torro-forms' ), 'store' => 'datetime', 'wrap_classes' => array( 'has-torro-tooltip-description' ), ); $meta_fields['not_yet_open_message'] = array( 'type' => 'text', 'label' => __( '“Not yet open” Message', 'torro-forms' ), 'description' => __( 'Enter the message to show to the user in case the form is not yet open to submissions.', 'torro-forms' ), 'default' => $this->get_default_not_yet_open_message(), 'input_classes' => array( 'regular-text' ), 'wrap_classes' => array( 'has-torro-tooltip-description' ), ); $meta_fields['no_longer_open_message'] = array( 'type' => 'text', 'label' => __( '“No longer open” Message', 'torro-forms' ), 'description' => __( 'Enter the message to show to the user in case the form is no longer open to submissions.', 'torro-forms' ), 'default' => $this->get_default_no_longer_open_message(), 'input_classes' => array( 'regular-text' ), 'wrap_classes' => array( 'has-torro-tooltip-description' ), ); return $meta_fields; }
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |