populate_roles_230() WordPress Function
The populate_roles_230() function is used to populate the roles for a user. This function is typically used when a user registers for a new account.
populate_roles_230() #
Create and modify WordPress roles for WordPress 2.3.
Source
File: wp-admin/includes/schema.php
function populate_roles_230() { $role = get_role( 'administrator' ); if ( ! empty( $role ) ) { $role->add_cap( 'unfiltered_upload' ); } }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.3.0 | Introduced. |