LLMS_Settings_Checkout::save()
Override default save method to save the display order of payment gateways
Description Description
Return Return
(void)
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 ] ) ); } } }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.17.5 | Introduced. |
User Contributed Notes User Contributed Notes
Permalink: