Reinitializes the object.
Recreates the role objects. This is typically called only by switch_to_blog() after switching wpdb to a new site ID.
public function reinit() {
_deprecated_function( __METHOD__, '4.7.0', 'WP_Roles::for_site()' );
$this->for_site();
}
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_roles/reinit