Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
WordPress Clone Role
add_action('init', 'kisker_role');
function kisker_role()
global $wp_roles;
if (!isset($wp_roles)) {
$wp_roles = new WP_Roles();
$adm = $wp_roles->get_role('customer');
$wp_roles->add_role('kisker', 'Kiskereskedő', $adm->capabilities);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.