Collections functions
General functions
Render functions
Theme permission functions
Resource functions

sort_tabs_as_configured()

Description

Sort list of tab names (preserving their key ID)

Parameters

ColumnTypeDefaultDescription
$tabs array List of tab ID and tab translated name pairs

Return

array

Location

include/tab_functions.php lines 102 to 110

Definition

 
function sort_tabs_as_configured(array $tabs)
    {
    if(
$GLOBALS['sort_tabs'] ?? false)
        {
        
asort($tabs);
        }

    return 
$tabs
    }

This article was last updated 26th September 2022 14:05 Europe/London time based on the source file dated 30th June 2022 11:10 Europe/London time.