PluginProbe
SupportCandy – AI Customer Support Ticket System & Live Chatbot Agent / 2.3.1
SupportCandy – AI Customer Support Ticket System & Live Chatbot Agent v2.3.1
3.5.4 3.5.3 3.5.2 3.5.1 3.4.9 3.5.0 3.4.8 3.4.7 trunk 2.3.1 3.3.6 3.3.7 3.3.8 3.3.9 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.6
supportcandy / includes / functions / get_condition_field_options.php

get_condition_field_options.php in SupportCandy – AI Customer Support Ticket System & Live Chatbot Agent 2.3.1, at includes/functions/get_condition_field_options.php

34 lines 678 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 exit; // Exit if accessed directly
4 }
5
6 global $wpscfunction;
7
8 $field_types = $wpscfunction->get_custom_field_types();
9
10 $conditional_types = array();
11 foreach ($field_types as $key => $field) {
12 if ($field['has_options']) {
13 $conditional_types[]=$key;
14 }
15 }
16
17 $fields = get_terms([
18 'taxonomy' => 'wpsc_ticket_custom_fields',
19 'hide_empty' => false,
20 'meta_query' => array(
21 'relation' => 'OR',
22 array(
23 'key' => 'wpsc_tf_type',
24 'value' => $conditional_types,
25 'compare' => 'IN'
26 ),
27 array(
28 'key' => 'wpsc_conditional',
29 'value' => '1',
30 'compare' => '='
31 )
32 ),
33 ]);
34