wp_roles()
Retrieves the global WP_Roles instance and instantiates it if necessary.
Description Description
Return Return
(WP_Roles) WP_Roles global instance if not already instantiated.
Source Source
File: wp-includes/capabilities.php
function wp_roles() {
global $wp_roles;
if ( ! isset( $wp_roles ) ) {
$wp_roles = new WP_Roles();
}
return $wp_roles;
}
Expand full source code Collapse full source code View on Trac
Changelog Changelog
| Version | Description |
|---|---|
| 4.3.0 | Introduced. |