LLMS_Settings_Checkout::sort_gateways( obj $gateway_a, obj $gateway_b )
usort function used to ensure gateways are sorted by display order on the gateways table
Parameters Parameters
- $gateway_a
-
(obj) (Required) Payment Gateway instance
- $gateway_b
-
(obj) (Required) Payment Gateway instance
Return Return
(int)
Source Source
File: includes/admin/settings/class.llms.settings.checkout.php
$a_order = $gateway_a->get_display_order(); $b_order = $gateway_b->get_display_order(); if ( $a_order == $b_order ) { return 0; } return $a_order < $b_order ? -1 : 1; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.17.5 | Introduced. |