'4', 'name' => esc_html__( 'Form', 'all-in-one-reservation' ), 'title' => esc_html__( 'Reservation Form Settings', 'all-in-one-reservation' ), 'desc' => esc_html__( 'All form fields and Add more fields', 'all-in-one-reservation' ), 'filter' => 'aior_add_in_security_settings', ); self::create_rs_tab( $nav_args ); add_filter( 'aior_add_in_security_settings', function() { $aior_builder = new Aior_Builder(); $rf_data = Aior_Reservation_Form::get_settings(); $form_json = isset( $rf_data['form_json'] ) ? $rf_data['form_json'] : ''; if ( $form_json && '{}' !== $form_json ) { $form_json_field = $form_json; } else { $form_json_field = '{"0":{"0":{"0":{"t":"number","n":"rf_slot","l":"Number of Person","p":"Enter Number of Person","r":"1","m":"You must select number of guest","x":"1","y":"10"}}},"1":{"0":{"0":{"t":"text","n":"rf_first_name","l":"First Name","p":"First Name","r":"1","m":"Please add your fist name"}},"1":{"0":{"t":"text","n":"rf_last_name","l":"Last Name","p":"Last Name","r":"1","m":"Please add your last name"}}},"2":{"0":{"0":{"t":"email","n":"rf_email","l":"Email","p":"Email","r":"1","m":"You must add your email id"}},"1":{"0":{"t":"text","n":"rf_phone_no","l":"Phone No","p":"Phone No.","r":"1","m":"Add your phone number.","x":"","y":""}}},"3":{"0":{"0":{"t":"textarea","n":"rf_note","l":"Notes","p":"Enter your reservation note","r":"","m":""}}}}'; $form_json_field = apply_filters( 'aior_default_form', $form_json_field ); } $aior_builder->add_field( array( 'type' => 'textarea', 'name' => '', 'id' => 'rf_droped', 'class' => 'hidden', 'value' => $form_json_field, ) ); ?>
add_field( array( 'type' => 'textarea', 'name' => 'form_json', 'id' => 'rf_form_json', 'class' => 'hidden', ) ); ?>