populate_roles_260() – Create and modify WordPress roles for WordPress 2.6.

You appear to be a bot. Output may be restricted

Description

Create and modify WordPress roles for WordPress 2.6.

Usage

populate_roles_260();

Parameters

Returns

void

Source

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

1 to 8 of 8
function populate_roles_260() {
  $role = get_role( 'administrator' );

  if ( ! empty( $role ) ) {
    $role->add_cap( 'update_plugins' );
    $role->add_cap( 'delete_plugins' );
  }
}
 

 View on GitHub View on Trac