populate_roles_250

Advertisement

Summery Summery

Create and modify WordPress roles for WordPress 2.5.

Syntax Syntax

populate_roles_250()

Source Source

File: wp-admin/includes/schema.php

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

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

Advertisement

Changelog Changelog

Changelog
Version Description
2.5.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.