WordPress at a glance
function is not described

wc_update_354_modify_shop_manager_caps() WC 1.0

Remove edit_user capabilities from shop managers and use "translated" capabilities instead. See wc_shop_manager_has_capability function.

No Hooks.

Return

Null. Nothing.

Usage

wc_update_354_modify_shop_manager_caps();

Code of wc_update_354_modify_shop_manager_caps() WC 5.0.0

<?php
function wc_update_354_modify_shop_manager_caps() {
	global $wp_roles;

	if ( ! class_exists( 'WP_Roles' ) ) {
		return;
	}

	if ( ! isset( $wp_roles ) ) {
		$wp_roles = new WP_Roles(); // @codingStandardsIgnoreLine
	}

	$wp_roles->remove_cap( 'shop_manager', 'edit_users' );
}