populate_roles_270()WP 2.7.0

Create and modify WordPress roles for WordPress 2.7.

No Hooks.

Return

null. Nothing (null).

Usage

populate_roles_270();

Changelog

Since 2.7.0 Introduced.

populate_roles_270() code WP 6.5.4

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

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