populate_roles_300() – Create and modify WordPress roles for WordPress 3.0.

You appear to be a bot. Output may be restricted

Description

Create and modify WordPress roles for WordPress 3.0.

Usage

populate_roles_300();

Parameters

Returns

void

Source

File name: wordpress/wp-admin/includes/schema.php
Lines:

1 to 13 of 13
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' );
  }
}
 

 View on GitHub View on Trac