WordPress at Your Fingertips
function is not described

WC_Payment_Gateways::process_admin_options() public WC 1.0

Save options in admin.

{} It's a method of the class: WC_Payment_Gateways{}

No Hooks.

Return

null. Nothing.

Usage

$WC_Payment_Gateways = new WC_Payment_Gateways();
$WC_Payment_Gateways->process_admin_options();

Code of WC_Payment_Gateways::process_admin_options() WC 5.9.0

public function process_admin_options() {
	$gateway_order = isset( $_POST['gateway_order'] ) ? wc_clean( wp_unslash( $_POST['gateway_order'] ) ) : ''; // WPCS: input var ok, CSRF ok.
	$order         = array();

	if ( is_array( $gateway_order ) && count( $gateway_order ) > 0 ) {
		$loop = 0;
		foreach ( $gateway_order as $gateway_id ) {
			$order[ esc_attr( $gateway_id ) ] = $loop;
			$loop++;
		}
	}

	update_option( 'woocommerce_gateway_order', $order );
}