WC_Settings_Payment_Gateways_React::output()
Output the settings.
Метод класса: WC_Settings_Payment_Gateways_React{}
Хуки из метода
Возвращает
null
. Ничего (null).
Использование
$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 WC 9.4.2
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 }