populate_roles() WordPress Function

The populate_roles() function is used to add new roles to WordPress. This function is typically used when a new WordPress installation is created.

populate_roles() #

Execute WordPress role creation for the various WordPress versions.


Source

File: wp-admin/includes/schema.php

function populate_roles() {
	populate_roles_160();
	populate_roles_210();
	populate_roles_230();
	populate_roles_250();
	populate_roles_260();
	populate_roles_270();
	populate_roles_280();
	populate_roles_300();
}


Top ↑

Changelog

Changelog
VersionDescription
2.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.