Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks
WooCommercePayments::can_view()
Task visibility.
Method of the class: WooCommercePayments{}
No Hooks.
Return
true|false
.
Usage
$WooCommercePayments = new WooCommercePayments(); $WooCommercePayments->can_view();
WooCommercePayments::can_view() WooCommercePayments::can view code WC 8.7.0
public function can_view() { $payments = $this->task_list->get_task( 'payments' ); return ! $payments->is_complete() && // Do not re-display the task if the "add payments" task has already been completed. self::is_installed() && self::is_supported(); }