Duplicate an existing role and modify some caps
Usage: wpcom_vip_duplicate_role( ‘administrator’, ‘station-administrator’, ‘Station Administrator’, array( ‘manage_categories’ => false ) );
Parameters
Name | Type | Description |
---|---|---|
$from_role | string | Role name |
$to_role_slug | string | Role name |
$to_role_name | string | Display name for the role |
$modified_caps | array | Key/value array of capabilities for the role |
Return Value
void