Created
September 1, 2019 06:59
-
-
Save trueqap/e1ffbc2e9ac3a993cd2dbc5638a0bd99 to your computer and use it in GitHub Desktop.
WordPress Clone Role
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
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