populate_roles_250

Create and modify WordPress roles for WordPress 2.5.

Description

populate_roles_250(); 

Usage

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

Defined (1)

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

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