populate_roles_250()WP 2.5.0

Create and modify WordPress roles for WordPress 2.5.

No Hooks.

Return

null. Nothing (null).

Usage

populate_roles_250();

Changelog

Since 2.5.0 Introduced.

populate_roles_250() code WP 6.5.4

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

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