WordPress at a glance
function is not described

wc_rest_check_manager_permissions() WC 2.6.0

Check manager permissions on REST API.

Hooks from the function
Return

true|false. Nothing.

Usage

wc_rest_check_manager_permissions( $object, $context );
$object(string) (required)
Object.
$context(string)
Request context.

Changelog

Since 2.6.0 Introduced.

Code of wc_rest_check_manager_permissions() WC 5.3.0

<?php
function wc_rest_check_manager_permissions( $object, $context = 'read' ) {
	$objects = array(
		'reports'          => 'view_woocommerce_reports',
		'settings'         => 'manage_woocommerce',
		'system_status'    => 'manage_woocommerce',
		'attributes'       => 'manage_product_terms',
		'shipping_methods' => 'manage_woocommerce',
		'payment_gateways' => 'manage_woocommerce',
		'webhooks'         => 'manage_woocommerce',
	);

	$permission = current_user_can( $objects[ $object ] );

	return apply_filters( 'woocommerce_rest_check_permissions', $permission, $context, 0, $object );
}