array(), 'agentonly' => array(), 'customer' => array(), ); foreach ( WPSC_Custom_Field::$custom_fields as $cf ) { if ( isset( $names[ $cf->field ] ) ) { $names[ $cf->field ][] = $cf->name; } } $field_types = array( 'ticket-fields' => array( 'label' => esc_attr__( 'Ticket Fields', 'supportcandy' ), 'desc' => esc_attr__( 'Information specific to a ticket, such as subject, status or priority.', 'supportcandy' ), 'names' => $names['ticket'], ), 'agent-only-fields' => array( 'label' => esc_attr__( 'Agent-only Fields', 'supportcandy' ), 'desc' => esc_attr__( 'Used internally by your support agents and never shown to customers.', 'supportcandy' ), 'names' => $names['agentonly'], ), 'customer-fields' => array( 'label' => esc_attr__( 'Customer Fields', 'supportcandy' ), 'desc' => esc_attr__( 'Information about the customer raising the ticket.', 'supportcandy' ), 'names' => $names['customer'], ), ); $tff_names = array(); foreach ( array_keys( get_option( 'wpsc-tff', array() ) ) as $slug ) { $cf = WPSC_Custom_Field::get_cf_by_slug( $slug ); if ( $cf ) { $tff_names[] = $cf->name; } } ?>


0 ) { $preview .= sprintf( /* translators: %d: number of additional fields not shown in the preview */ esc_html__( ' +%d more', 'supportcandy' ), $remaining ); } return $preview; } } endif;