Deprecated

This function has been deprecated. Using WP_List_Util::sort, hence this callback is not required anymore instead.

ap_sort_order_callback( array $a, array $b )

Description #

Callback for @uses ap_sort_array_by_order.

Parameters #

  • $a
    array (Required) Array.
  • $b
    array (Required) Array.

Changelog #

VersionDescription
4.1.0Introduced.

Source #

File: includes/deprecated.php

function ap_sort_order_callback( $a, $b ) {
	_deprecated_function( __FUNCTION__, '4.1.0' );

	if ( $a['order'] == $b['order'] ) {
		return 0;
	}

	return ( $a['order'] < $b['order'] ) ? -1 : 1;
}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment