A WordPress-centric search engine for devs and theme authors



populate_roles_230 ›

Since2.3.0
Deprecatedn/a
populate_roles_230 ( No parameters )
Defined at:
Codex:

Create and modify WordPress roles for WordPress 2.3.



Source

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

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