WP_User::for_blog( int $blog_id =  )

In this article

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

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

Parameters

$blog_idintoptional
Site ID, defaults to current site.

Default:''

Source

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

	$this->for_site( $blog_id );
}

Changelog

VersionDescription
4.9.0Use WP_User::for_site()
3.0.0Introduced.

User Contributed Notes

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