Created
May 2, 2024 06:57
-
-
Save ahsannayem/b9edd56179011531791049579ada2e16 to your computer and use it in GitHub Desktop.
Change Ticket status for Open, Active, Close, New, All
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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