do_action( 'wp_roles_init', WP_Roles $this )

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

Parameters

$this

(WP_Roles) A reference to the WP_Roles object.

Source

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

View on Trac

Changelog

Version Description
4.7.0 Introduced.

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