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

WP_User::for_blog( int $blog_id = '' )

Set the site to operate on. Defaults to the current site.


Parameters

$blog_id

(Optional) Site ID, defaults to current site.

Default value: ''


Source

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

	public function for_blog( $blog_id = '' ) {
		_deprecated_function( __METHOD__, 'WP-4.9.0', 'WP_User::for_site()' );

		$this->for_site( $blog_id );
	}


Changelog

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