Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks
AdditionalPayments::has_gateways()
Show task if woocommerce-payments is connected or if there are any suggested gateways in other category enabled.
Method of the class: AdditionalPayments{}
No Hooks.
Return
null
. Nothing (null).
Usage
$AdditionalPayments = new AdditionalPayments(); $AdditionalPayments->WooCommercePayments::is_connected() ||;
AdditionalPayments::has_gateways() AdditionalPayments::has gateways code WC 8.6.1
WooCommercePayments::is_connected() || self::has_enabled_other_category_gateways() ); // Early return if task is not visible. if ( ! $this->can_view_result ) { return false; } // Show task if there are any suggested gateways in additional category. $this->can_view_result = ! empty( self::get_suggestion_gateways( 'category_additional' ) );