wp_roles() – Retrieves the global WP_Roles instance and instantiates it if necessary.

You appear to be a bot. Output may be restricted

Description

Retrieves the global WP_Roles instance and instantiates it if necessary.

Usage

$WP_Roles = wp_roles();

Parameters

Returns

WP_Roles WP_Roles global instance if not already instantiated.

Source

File name: wordpress/wp-includes/capabilities.php
Lines:

1 to 8 of 8
function wp_roles() {
  global $wp_roles;

  if ( ! isset( $wp_roles ) ) {
    $wp_roles = new WP_Roles();
  }
  return $wp_roles;
}
 

 View on GitHub View on Trac