WC_Helper::_sort_by_product_name()
Sort subscriptions by the product_name.
Method of the class: WC_Helper{}
No Hooks.
Return
Int
.
Usage
$result = WC_Helper::_sort_by_product_name( $a, $b );
- $a(array) (required)
- Subscription array.
- $b(array) (required)
- Subscription array.
WC_Helper::_sort_by_product_name() WC Helper:: sort by product name code WC 9.3.1
public static function _sort_by_product_name( $a, $b ) { return strcmp( $a['product_name'], $b['product_name'] ); }