Automattic\WooCommerce\Admin\Features\Blueprint\Exporters

ExportWCPaymentGateways::maybe_hide_wcpay_gateways()protectedWC 1.0

Maybe hide WooCommerce Payments gateways

Method of the class: ExportWCPaymentGateways{}

No Hooks.

Return

null. Nothing (null).

Usage

// protected - for code of main (parent) or child class
$result = $this->maybe_hide_wcpay_gateways();

ExportWCPaymentGateways::maybe_hide_wcpay_gateways() code WC 9.7.1

protected function maybe_hide_wcpay_gateways() {
	if ( class_exists( 'WC_Payments' ) ) {
		\WC_Payments::hide_gateways_on_settings_page();
	}
}