WordPress at a glance
function is not described

WP_Roles::_init() protected WP 2.1.0

Deprecated from version 4.9.0. It is no longer supported and can be removed in future releases. Use WP_Roles::for_site() instead.

Set up the object properties.

The role key is set to the current prefix for the $wpdb object with 'user_roles' appended. If the $wp_user_roles global is set, then it will be used and the role option will not be updated or used.

{} It's a method of the class: WP_Roles{}

No Hooks.

Return

null. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->_init();

Changelog

Since 2.1.0 Introduced.
Deprecated Since 4.9.0 Use WP_Roles::for_site()

Code of WP_Roles::_init() WP 5.7.2

<?php
protected function _init() {
	_deprecated_function( __METHOD__, '4.9.0', 'WP_Roles::for_site()' );

	$this->for_site();
}