WordPress at a glance
function is not described

wc_update_344_recreate_roles() WC 1.0

Recreate user roles so existing users will get the new capabilities.

No Hooks.

Return

null.

Usage

wc_update_344_recreate_roles();

Code of wc_update_344_recreate_roles() WC 5.0.0

<?php
function wc_update_344_recreate_roles() {
	WC_Install::remove_roles();
	WC_Install::create_roles();
}