Sets the site to operate on. Defauls to the current site.
Parameters
-
$blog_idint optional -
Site ID, defauls 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 );
}
Changuelog
| Versionen | Description |
|---|---|
| 4.9.0 | Use WP_User::for_site() |
| 3.0.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.