populate_roles_260

Advertisement

Summery Summery

Create and modify WordPress roles for WordPress 2.6.

Syntax Syntax

populate_roles_260()

Source Source

File: wp-admin/includes/schema.php

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

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

Advertisement

Changelog Changelog

Changelog
Version Description
2.6.0 Introduced.

Advertisement

Leave a Reply