populate_roles_270

Create and modify WordPress roles for WordPress 2.7.

Description

populate_roles_270(); 

Usage

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

Defined (1)

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

/wp-admin/includes/schema.php  
  1. function populate_roles_270() { 
  2. $role = get_role( 'administrator' ); 
  3.  
  4. if ( !empty( $role ) ) { 
  5. $role->add_cap( 'install_plugins' ); 
  6. $role->add_cap( 'update_themes' );