Function: wp_roles

wp_roles( )

Retrieves the global WP_Roles instance and instantiates it if necessary.

Returns

WP_Roles

WP_Roles global instance if not already instantiated.

WordPress Developer Newsletter

Stay on top of the latest WordPress API changes, developer tool updates, security alerts and more.