/ Published in: PHP
                    
                                        
run funciton once, ideally bind to activation hook of a plugin
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
function update_caps()
{
$role = get_role( 'editor' );
'delete_users',
'create_users',
'list_users',
'remove_users',
'add_users',
'promote_users',
);
foreach( $caps_to_add as $cap )
$role->add_cap( $cap );
}
Comments
 Subscribe to comments
                    Subscribe to comments
                
                