Automattic\WooCommerce\Admin\API

Notice::get_permissionpublicWC 1.0

Check user has the necessary permissions to perform this action.

Method of the class: Notice{}

No Hooks.

Returns

true|false.

Usage

$Notice = new Notice();
$Notice->get_permission(): bool;

Notice::get_permission() code WC 10.3.3

public function get_permission(): bool {
	return current_user_can( 'manage_woocommerce' );
}