wpseek.com
A WordPress-centric search engine for devs and theme authors
populate_roles_300 › WordPress Function
Since3.0.0
Deprecatedn/a
› populate_roles_300 ( No parameters )
Defined at: |
|
Codex: |
Create and modify WordPress roles for WordPress 3.0.
Related Functions: populate_roles_230, populate_roles_280, populate_roles_160, populate_roles_210, populate_roles_250
Source
function populate_roles_300() { $role = get_role( 'administrator' ); if ( ! empty( $role ) ) { $role->add_cap( 'update_core' ); $role->add_cap( 'list_users' ); $role->add_cap( 'remove_users' ); $role->add_cap( 'promote_users' ); $role->add_cap( 'edit_theme_options' ); $role->add_cap( 'delete_themes' ); $role->add_cap( 'export' ); } }