Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks

Payments::can_view()publicWC 1.0

Task visibility.

{} Это метод класса: Payments{}

Хуков нет.

Возвращает

true|false.

Использование

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

Код Payments::can_view() WC 6.5.1

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