A WordPress-centric search engine for devs and theme authors



switch_blog ›

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

Fires when the blog is switched.





Source

do_action( 'switch_blog', $new_blog, $new_blog );