This method has been deprecated. Use WP_Roles::for_site() instead.

WP_Roles::_init()

Set up the object properties.


Description

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.


Source

File: wp-includes/class-wp-roles.php

	protected function _init() {
		_deprecated_function( __METHOD__, 'WP-4.9.0', 'WP_Roles::for_site()' );

		$this->for_site();
	}


Changelog

Changelog
Version Description
WP-4.9.0 Use WP_Roles::for_site()
WP-2.1.0 Introduced. This method has been deprecated. Use WP_Roles::for_site() instead.