WP_Theme::_name_sort_i18n()
Callback function for usort() to naturally sort themes by translated name.
Метод класса: WP_Theme{}
Хуков нет.
Возвращает
int
. Negative if $a falls lower in the natural order than $b. Zero if they fall equally. Greater than 0 if $a falls higher in the natural order than $b. Used with usort().
Использование
$result = WP_Theme::_name_sort_i18n( $a, $b );
Список изменений
С версии 3.4.0 | Введена. |
Код WP_Theme::_name_sort_i18n() WP Theme:: name sort i18n WP 6.4.1
private static function _name_sort_i18n( $a, $b ) { return strnatcasecmp( $a->name_translated, $b->name_translated ); }