WC_Settings_Payment_Gateways_React::output()
Output the settings.
Method of the class: WC_Settings_Payment_Gateways_React{}
Hooks from the method
Return
null
. Nothing (null).
Usage
$WC_Settings_Payment_Gateways_React = new WC_Settings_Payment_Gateways_React(); $WC_Settings_Payment_Gateways_React->output();
WC_Settings_Payment_Gateways_React::output() WC Settings Payment Gateways React::output code WC 9.5.1
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(); // Load gateways so we can show any global options they may have. $payment_gateways = WC()->payment_gateways->payment_gateways(); if ( $this->should_render_react_section( $current_section ) ) { $this->render_react_section( $current_section ); } elseif ( $current_section ) { $this->render_classic_gateway_settings_page( $payment_gateways, $current_section ); } else { $this->render_react_section( 'main' ); } parent::output(); //phpcs:enable }