wp_roles_init WordPress Action Hook

The wp_roles_init hook is used to initialize the roles for a user. This hook is called during the user registration process.

do_action( 'wp_roles_init', WP_Roles $wp_roles ) #

After the roles have been initialized, allow plugins to add their own roles.


Parameters

$wp_roles

(WP_Roles)A reference to the WP_Roles object.


Top ↑

Source

File: wp-includes/class-wp-roles.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.7.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.