W3cubDocs

/WordPress

do_action( ‘wp_roles_init’, WP_Roles $wp_roles )

Fires after the roles have been initialized, allowing plugins to add their own roles.

Parameters

$wp_rolesWP_Roles
A reference to the WP_Roles object.

Source

do_action( 'wp_roles_init', $this );

Changelog

Version Description
4.7.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_roles_init