This method has been deprecated. Use WP_Roles::for_site() instead.
WP_Roles::reinit()
Reinitialize 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
File: wp-includes/class-wp-roles.php
public function reinit() {
_deprecated_function( __METHOD__, 'WP-4.7.0', 'WP_Roles::for_site()' );
$this->for_site();
}
Changelog
Version | Description |
---|---|
WP-4.7.0 | Use WP_Roles::for_site() |
WP-3.5.0 | Introduced. This method has been deprecated. Use WP_Roles::for_site() instead. |