Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks
AdditionalPayments::can_view
Task visibility.
Method of the class: AdditionalPayments{}
No Hooks.
Returns
true|false.
Usage
$AdditionalPayments = new AdditionalPayments(); $AdditionalPayments->can_view();
AdditionalPayments::can_view() AdditionalPayments::can view code WC 10.8.1
public function can_view() {
if ( null !== $this->can_view_result ) {
return $this->can_view_result;
}
// Always show task if there are any gateways enabled (i.e. the Payments task is complete).
if ( self::has_gateways() ) {
$this->can_view_result = true;
} else {
$this->can_view_result = false;
}
return $this->can_view_result;
}