Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks

Payments::can_view()publicWC 1.0

Task visibility.

Method of the class: Payments{}

No Hooks.

Return

true|false.

Usage

$Payments = new Payments();
$Payments->can_view();

Payments::can_view() code WC 7.1.0

public function can_view() {
	$woocommerce_payments = $this->task_list->get_task( 'woocommerce-payments' );
	return Features::is_enabled( 'payment-gateway-suggestions' ) && ! $woocommerce_payments->can_view();
}