Uses
Uses | Description |
---|---|
wp-includes/capabilities.php: get_role() | Retrieve role object. |
Create and modify WordPress roles for WordPress 2.6.
File: wp-admin/includes/schema.php
function populate_roles_260() { $role = get_role( 'administrator' ); if ( ! empty( $role ) ) { $role->add_cap( 'update_plugins' ); $role->add_cap( 'delete_plugins' ); } }
Version | Description |
---|---|
2.6.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/populate_roles_260