Uses
Uses | Description |
---|---|
wp-includes/class-wp-roles.php: WP_Roles::__construct() | Constructor |
Retrieves the global WP_Roles instance and instantiates it if necessary.
(WP_Roles) WP_Roles global instance if not already instantiated.
File: wp-includes/capabilities.php
function wp_roles() { global $wp_roles; if ( ! isset( $wp_roles ) ) { $wp_roles = new WP_Roles(); } return $wp_roles; }
Version | Description |
---|---|
4.3.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_roles