switch_blog, $new_blog_id, $prev_blog_id, restore
switch_blog, $new_blog_id, $prev_blog_id, restore
Appears in: 7.0.3
Hook Type: action
Displaying hooks found in version: 7.0.3do_action('switch_blog, $new_blog_id, $prev_blog_id, restore') is found 2 times:
- /wp-includes/ms-blogs.php line 575
$prev_blog_id = get_current_blog_id(); if ( $new_blog_id === $prev_blog_id ) { /** This filter is documented in wp-includes/ms-blogs.php */ do_action( 'switch_blog', $new_blog_id, $prev_blog_id, 'restore' ); // If we still have items in the switched stack, consider ourselves still 'switched'. $GLOBALS['switched'] = ! empty( $GLOBALS['_wp_switched_stack'] ); return true; } - /wp-includes/ms-blogs.php line 590
wp_cache_switch_to_blog( $new_blog_id ); /** This filter is documented in wp-includes/ms-blogs.php */ do_action( 'switch_blog', $new_blog_id, $prev_blog_id, 'restore' ); // If we still have items in the switched stack, consider ourselves still 'switched'. $GLOBALS['switched'] = ! empty( $GLOBALS['_wp_switched_stack'] ); return true; }