Skip to content

Instantly share code, notes, and snippets.

@ahsannayem
Created May 2, 2024 06:57
Show Gist options
  • Save ahsannayem/b9edd56179011531791049579ada2e16 to your computer and use it in GitHub Desktop.
Save ahsannayem/b9edd56179011531791049579ada2e16 to your computer and use it in GitHub Desktop.
Change Ticket status for Open, Active, Close, New, All
add_filter('fluent_support/ticket_status_groups', function ($statusGroups) {
// Modify the array keys
$statusGroups['khula'] = $statusGroups['open'];
$statusGroups['choler'] = $statusGroups['active'];
$statusGroups['bondo'] = $statusGroups['closed'];
$statusGroups['notun'] = $statusGroups['new'];
$statusGroups['hokol_ticket'] = $statusGroups['all'];
// Remove the old keys if necessary
unset($statusGroups['open']);
unset($statusGroups['active']);
unset($statusGroups['closed']);
unset($statusGroups['new']);
unset($statusGroups['all']);
return $statusGroups;
}, 10, 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment