'adtf_tab',
// Define the title to be displayed on the toggle button your tab.
'title' => 'Date Time Field',
// Define an array of classes to be added to the toggle button for your tab.
'toggle_classes' => array('adtf_toggle_1'),
// Define an array of classes to be added to the body of your tab.
'body_classes' => array('adtf_toggle_class'),
);
return $tabs;
}
public function fields_settings_tab_content($form) {
?>
esc_html__('None', 'advanced-date-time-field'),
'sun' => esc_html__('Sunday', 'advanced-date-time-field'),
'mon' => esc_html__('Monday', 'advanced-date-time-field'),
'tue' => esc_html__('Tuesday', 'advanced-date-time-field'),
'wed' => esc_html__('Wednesday', 'advanced-date-time-field'),
'thu' => esc_html__('Thursday', 'advanced-date-time-field'),
'fri' => esc_html__('Friday', 'advanced-date-time-field'),
'sat' => esc_html__('Saturday', 'advanced-date-time-field'),
];
}
public function add_tooltips($tooltips) {
$tooltips['adtf_field_type'] = esc_html__('Select whether you want to use the date picker, time picker, or both date and time picker.', 'advanced-date-time-field');
$tooltips['date_format'] = esc_html__('Select the format in which the date should be displayed.', 'advanced-date-time-field');
$tooltips['min_date'] = esc_html__('Select the minimum selectable date for the date picker.', 'advanced-date-time-field');
$tooltips['min_date_value'] = esc_html__('Pick the exact date that should be the minimum selectable date.', 'advanced-date-time-field');
$tooltips['max_date'] = esc_html__('Select the maximum selectable date for the date picker.', 'advanced-date-time-field');
$tooltips['max_date_value'] = esc_html__('Pick the exact date that should be the maximum selectable date.', 'advanced-date-time-field');
$tooltips['disable_weekday'] = esc_html__('Select the weekday you want to disable in the date picker.', 'advanced-date-time-field');
$tooltips['start_weekday'] = esc_html__('Select the starting weekday for the date picker calendar.', 'advanced-date-time-field');
$tooltips['time_format'] = esc_html__('Select the format in which the time should be displayed.', 'advanced-date-time-field');
return $tooltips;
}
}
new ADTF_Editor();