W3cubDocs

/WordPress

populate_roles_280()

Create and modify WordPress roles for WordPress 2.8.

Description

Source

File: wp-admin/includes/schema.php

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

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

Changelog

Version Description
2.8.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/populate_roles_280