Advertisements

populate_roles_300

Definition:
function populate_roles_300() {}

Create and modify WordPress roles for WordPress 3.0.

Source code

function populate_roles_300() {

	$role =& get_role( 'administrator' );



	if ( !empty( $role ) ) {

		$role->add_cap( 'update_core' );

		$role->add_cap( 'list_users' );

		$role->add_cap( 'remove_users' );

		$role->add_cap( 'add_users' );

		$role->add_cap( 'promote_users' );

		$role->add_cap( 'edit_theme_options' );

		$role->add_cap( 'delete_themes' );

		$role->add_cap( 'export' );

	}

}

2543

Advertisements

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: