You appear to be a bot. Output may be restricted
Description
Output the settings.
Usage
WC_Settings_Payment_Gateways::output();
Parameters
Returns
void
Source
File name: woocommerce/includes/admin/settings/class-wc-settings-payment-gateways.php
Lines:
1 to 25 of 25
public function output() { global $current_section; // Load gateways so we can show any global options they may have. $payment_gateways = WC()->payment_gateways->payment_gateways(); if ( $current_section ) { foreach ( $payment_gateways as $gateway ) { if ( in_array( $current_section, array( $gateway->id, sanitize_title( get_class( $gateway ) ) ), true ) ) { if ( isset( $_GET['toggle_enabled'] ) ) { // WPCS: input var ok, CSRF ok. $enabled = $gateway->get_option( 'enabled' ); if ( $enabled ) { $gateway->settings['enabled'] = wc_string_to_bool( $enabled ) ? 'no' : 'yes'; } } $gateway->admin_options(); break; } } } $settings = $this->get_settings( $current_section ); WC_Admin_Settings::output_fields( $settings ); }