A WordPress-centric search engine for devs and theme authors



populate_roles_280 ›

Since2.8.0
Deprecatedn/a
populate_roles_280 ( No parameters )
Defined at:
Codex:

Create and modify WordPress roles for WordPress 2.8.



Source

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

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