WP_Roles::_init()

In this article

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

Sets 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

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

	$this->for_site();
}

Changelog

VersionDescription
4.9.0Use WP_Roles::for_site()
2.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.