EDD Support Tickets

Change Colors of The Ticket Status Labels

These are the default colors for the support ticket labels:

EDD Support Tickets Status Labels and Badges

You can change the color of the New ticket label with the following filter. The default color for the New label is purple (#9b59b6). Change that on line 9 to your desired hex or rgb color code.

/**
 * Change EDD Support Ticket label color for new tickets
 * Default is #9b59b6
 */

add_filter( 'eddstix_new_label_color', 'my_eddstix_new_label_color' );

function my_eddstix_new_label_color( $color ) {
	return '#9b59b6';
}

You can change the color of the In Progress ticket label with the following filter. The default color for the In Progress label is green (#26a65b). Change that on line 9 to your desired hex or rgb color code.

/**
 * Change EDD Support Ticket label color for 'in progress' tickets
 * Default is #26a65b
 */

add_filter( 'eddstix_in_progress_label_color', 'my_eddstix_in_progress_label_color' );

function my_eddstix_in_progress_label_color( $color ) {
	return '#26a65b';
}

You can change the color of the Closed ticket label with the following filter. The default color for the Closed label is red (#dd3333). Change that on line 9 to your desired hex or rgb color code.

/**
 * Change EDD Support Ticket label color for closed tickets
 * Default is #dd3333
 */

add_filter( 'eddstix_closed_label_color', 'my_eddstix_closed_label_color' );

function my_eddstix_closed_label_color( $color ) {
	return '#dd3333';
}

You can change the color of the On Hold ticket label with the following filter. The default color for the On Hold label is beige (#daa479). Change that on line 9 to your desired hex or rgb color code.

/**
 * Change EDD Support Ticket label color for 'on hold' tickets
 * Default is #daa479
 */

add_filter( 'eddstix_hold_label_color', 'my_eddstix_hold_label_color' );

function my_eddstix_hold_label_color( $color ) {
	return '#daa479';
}

You can change the color of the Awaiting Reply ticket badge with the following filter. The default color for the Awaiting Reply badge is yellow (#f1c40f). Change that on line 9 to your desired hex or rgb color code.

/**
 * Change EDD Support Ticket label color for 'Awaiting reply' badge
 * Default is #f1c40f
 */

add_filter( 'eddstix_awaiting_badge_color', 'my_eddstix_awaiting_badge_color' );

function my_eddstix_awaiting_badge_color( $color ) {
	return '#f1c40f';
}

Updated on December 6, 2017

Questions and Comments are Welcome

Your email address will not be published. All comments will be moderated.

Please wrap code in "code" bracket tags like this:

[code]

YOUR CODE HERE 

[/code]