Ameliabooking_Helpers::get_option_fields( $trigger_code = '', $trigger_meta = '' )
Source Source
File: src/integrations/ameliabooking/helpers/ameliabooking-helpers.php
public function get_option_fields( $trigger_code = '', $trigger_meta = '' ) { return array( $trigger_meta => array( array( 'input_type' => 'select', 'option_code' => $trigger_code . '_SERVICES', 'required' => true, 'label' => esc_html__( 'Category', 'uncanny-automator' ), 'options' => $this->get_services_categories(), 'is_ajax' => true, 'endpoint' => 'ameliabooking_service_category_endpoint', 'fill_values_in' => $trigger_meta, 'relevant_tokens' => array(), ), array( 'input_type' => 'select', 'option_code' => $trigger_meta, 'required' => true, 'label' => esc_html__( 'Service', 'uncanny-automator' ), 'relevant_tokens' => array(), ), ), ); }
Expand full source code Collapse full source code View on Github