WP_Theme::sort_by_name( array $themes )

Sorts themes by name.


Description Description


Parameters Parameters

$themes

(array) (Required) Array of themes to sort (passed by reference).


Top ↑

Source Source

File: wp-includes/class-wp-theme.php

	public static function sort_by_name( &$themes ) {
		if ( 0 === strpos( get_user_locale(), 'en_' ) ) {
			uasort( $themes, array( 'WP_Theme', '_name_sort' ) );
		} else {
			uasort( $themes, array( 'WP_Theme', '_name_sort_i18n' ) );
		}
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.4.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.