wpseek.com
A WordPress-centric search engine for devs and theme authors



populate_roles_270 › WordPress Function

Since2.7.0
Deprecatedn/a
populate_roles_270 ( No parameters )
Defined at:
Codex:

Create and modify WordPress roles for WordPress 2.7.



Source

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

	if ( ! empty( $role ) ) {
		$role->add_cap( 'install_plugins' );
		$role->add_cap( 'update_themes' );
	}
}