WC_Settings_Payment_Gateways::outputpublicWC 1.0

Output the settings.

Method of the class: WC_Settings_Payment_Gateways{}

Returns

null. Nothing (null).

Usage

$WC_Settings_Payment_Gateways = new WC_Settings_Payment_Gateways();
$WC_Settings_Payment_Gateways->output();

WC_Settings_Payment_Gateways::output() code WC 10.5.0

public function output() {
	// phpcs:disable WordPress.Security.NonceVerification.Recommended
	global $current_section;

	// We don't want to output anything from the action for now. So we buffer it and discard it.
	ob_start();
	/**
	 * Fires before the payment gateways settings fields are rendered.
	 *
	 * @since 1.5.7
	 */
	do_action( 'woocommerce_admin_field_payment_gateways' );
	ob_end_clean();

	if ( is_string( $current_section ) && $this->should_render_react_section( $current_section ) ) {
		$this->render_react_section( $this->standardize_section_name( $current_section ) );
	} elseif ( is_string( $current_section ) && ! empty( $current_section ) ) {
		// Load gateways so we can show any global options they may have.
		$payment_gateways = WC()->payment_gateways()->payment_gateways;
		$this->render_classic_gateway_settings_page( $payment_gateways, $current_section );
	} else {
		$this->render_react_section( self::MAIN_SECTION_NAME );
	}

	parent::output();
	//phpcs:enable
}