ID && $current_user->has_cap('manage_options'))) { exit; } $fields = get_terms([ 'taxonomy' => 'wpsc_ticket_custom_fields', 'hide_empty' => false, 'orderby' => 'meta_value_num', 'meta_key' => 'wpsc_tf_load_order', 'order' => 'ASC', 'meta_query' => array( array( 'key' => 'agentonly', 'value' => '0', 'compare' => '=' ) ), ]); ?>