WordPress at Your Fingertips
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. Nothing.

Usage

wc_update_344_recreate_roles();

Code of wc_update_344_recreate_roles() WC 5.5.2

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