woocommerce_shop_manager_editable_roles хук-фильтрWC 1.0

Shop managers can only edit customer info.

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

add_filter( 'woocommerce_shop_manager_editable_roles', 'wp_kama_woocommerce_shop_manager_editable_roles_filter' );

/**
 * Function for `woocommerce_shop_manager_editable_roles` filter-hook.
 * 
 * @param  $array 
 *
 * @return 
 */
function wp_kama_woocommerce_shop_manager_editable_roles_filter( $array ){

	// filter...
	return $array;
}
$array
-

Где вызывается хук

wc_modify_map_meta_cap()
woocommerce_shop_manager_editable_roles
wc_rest_check_user_permissions()
woocommerce_shop_manager_editable_roles
wc_modify_editable_roles()
woocommerce_shop_manager_editable_roles
woocommerce/includes/wc-user-functions.php 543
$shop_manager_editable_roles = apply_filters( 'woocommerce_shop_manager_editable_roles', array( 'customer' ) );
woocommerce/includes/wc-rest-functions.php 267
$shop_manager_editable_roles = apply_filters( 'woocommerce_shop_manager_editable_roles', array( 'customer' ) );
woocommerce/includes/wc-user-functions.php 505
$shop_manager_editable_roles = apply_filters( 'woocommerce_shop_manager_editable_roles', array( 'customer' ) );

Где используется хук в WooCommerce

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