WC_Helper_Subscriptions_API::get_permission()public staticWC 1.0

The Extensions page can only be accessed by users with the manage_woocommerce capability. So the API mimics that behavior.

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

Хуков нет.

Возвращает

null. Ничего (null).

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

$result = WC_Helper_Subscriptions_API::get_permission();

Код WC_Helper_Subscriptions_API::get_permission() WC 9.4.2

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