Automattic\WooCommerce\Internal\Admin\Suggestions\Incentives
Incentive::user_has_caps
Check if the current user has the required capabilities to view incentives.
Method of the class: Incentive{}
No Hooks.
Returns
true|false. Whether the current user has the required capabilities view incentives.
Usage
// protected - for code of main (parent) or child class $result = $this->user_has_caps(): bool;
Incentive::user_has_caps() Incentive::user has caps code WC 10.3.6
protected function user_has_caps(): bool {
return current_user_can( 'manage_woocommerce' );
}