WP_Roles::reinit()

In this article

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

Reinitializes the object.

Description

Recreates the role objects. This is typically called only by switch_to_blog() after switching wpdb to a new site ID.

Source

public function reinit() {
	_deprecated_function( __METHOD__, '4.7.0', 'WP_Roles::for_site()' );

	$this->for_site();
}

Changelog

VersionDescription
4.7.0Use WP_Roles::for_site()
3.5.0Introduced.

User Contributed Notes

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