LLMS_Settings_Checkout::save()

Override default save method to save the display order of payment gateways


Description Description


Return Return

(void)


Top ↑

Source Source

File: includes/admin/settings/class.llms.settings.checkout.php

	public function save() {

		// save all custom fields
		parent::save();

		// save display order of gateways
		foreach ( LLMS()->payment_gateways()->get_payment_gateways() as $id => $gateway ) {
			$option = $gateway->get_option_name( 'display_order' );
			if ( isset( $_POST[ $option ] ) ) {
				update_option( $option, absint( $_POST[ $option ] ) );
			}
		}
	}

Top ↑

Changelog 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.





Permalink: