populate_roles_260()WP 2.6.0

Create and modify WordPress roles for WordPress 2.6.

No Hooks.

Return

null. Nothing (null).

Usage

populate_roles_260();

Changelog

Since 2.6.0 Introduced.

populate_roles_260() code WP 6.5.4

function populate_roles_260() {
	$role = get_role( 'administrator' );

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