A WordPress-centric search engine for devs and theme authors



switch_blog ›

SinceMU (3.0.0)
Deprecatedn/a
do_action( 'switch_blog', $new_blog_id, $prev_blog_id )
Parameters: (2)
  • (int) $new_blog_id New blog ID.
    Required: Yes
  • (int) $prev_blog_id Previous blog ID.
    Required: Yes
Defined at:
Codex:

Fires when the blog is switched.





Source

do_action( 'switch_blog', $new_blog_id, $prev_blog_id );