Automattic\WooCommerce\Admin\Features\Blueprint\Exporters
ExportWCPaymentGateways::maybe_hide_wcpay_gateways
Maybe hide WooCommerce Payments gateways
Method of the class: ExportWCPaymentGateways{}
No Hooks.
Returns
null. Nothing (null).
Usage
// protected - for code of main (parent) or child class $result = $this->maybe_hide_wcpay_gateways();
ExportWCPaymentGateways::maybe_hide_wcpay_gateways() ExportWCPaymentGateways::maybe hide wcpay gateways code WC 10.6.2
protected function maybe_hide_wcpay_gateways() {
if ( class_exists( 'WC_Payments' ) ) {
\WC_Payments::hide_gateways_on_settings_page();
}
}