populate_roles_300

Create and modify WordPress roles for WordPress 3.0.

Description

populate_roles_300(); 

Usage

  1. if ( !function_exists( 'populate_roles_300' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/schema.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = populate_roles_300(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/includes/schema.php  
  1. function populate_roles_300() { 
  2. $role = get_role( 'administrator' ); 
  3.  
  4. if ( !empty( $role ) ) { 
  5. $role->add_cap( 'update_core' ); 
  6. $role->add_cap( 'list_users' ); 
  7. $role->add_cap( 'remove_users' ); 
  8. $role->add_cap( 'promote_users' ); 
  9. $role->add_cap( 'edit_theme_options' ); 
  10. $role->add_cap( 'delete_themes' ); 
  11. $role->add_cap( 'export' );