Uses
Uses | Description |
---|---|
wp-includes/functions.php: _deprecated_function() | Mark a function as deprecated and inform when it has been used. |
This function has been deprecated. Use wp_list_sort() instead.
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.
Sort categories by name.
Used by usort() as a callback, should not be used directly. Can actually be used to sort any term object.
(object) (Required)
(object) (Required)
(int)
File: wp-includes/deprecated.php
function _usort_terms_by_name( $a, $b ) { _deprecated_function( __FUNCTION__, '4.7.0', 'wp_list_sort()' ); return strcmp( $a->name, $b->name ); }
Version | Description |
---|---|
4.7.0 | Use wp_list_sort() |
2.3.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/_usort_terms_by_name