populate_roles_270() WordPress Function
This function is used to populate the roles for a WordPress site. It is called by the WordPress core when a new site is created. It is also used to populate the roles for a new user when they are added to a site.
populate_roles_270() #
Create and modify WordPress roles for WordPress 2.7.
Source
File: wp-admin/includes/schema.php
function populate_roles_270() { $role = get_role( 'administrator' ); if ( ! empty( $role ) ) { $role->add_cap( 'install_plugins' ); $role->add_cap( 'update_themes' ); } }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.7.0 | Introduced. |