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


(obj) (Required) Payment Gateway instance


(obj) (Required) Payment Gateway instance

Top ↑

Return Return


Top ↑

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;


Top ↑

Changelog Changelog

Version Description
3.17.5 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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