Automattic\WooCommerce\Admin\API

Notice::get_permission │ public │ WC 1.0

Check user has the necessary permissions to perform this action.

Метод класса: Notice{}

Хуков нет.

Возвращает

bool.

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

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

Код Notice::get_permission() WC 11.2.2

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