This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
Callback function for usort() to naturally sort themes by translated name.
(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().
File: wp-includes/class-wp-theme.php
private static function _name_sort_i18n( $a, $b ) { return strnatcasecmp( $a->name_translated, $b->name_translated ); }
Version | Description |
---|---|
3.4.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_theme/_name_sort_i18n