A WordPress-centric search engine for devs and theme authors



populate_roles_260 ›

Since2.6.0
Deprecatedn/a
populate_roles_260 ( No parameters )
Defined at:
Codex:

Create and modify WordPress roles for WordPress 2.6.



Source

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

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