populate_roles_270

Advertisement

Summery Summery

Create and modify WordPress roles for WordPress 2.7.

Syntax Syntax

populate_roles_270()

Source Source

File: wp-admin/includes/schema.php

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

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

Advertisement

Changelog Changelog

Changelog
Version Description
2.7.0 Introduced.

Advertisement

Leave a Reply