Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-includes/ms-blogs.php | do_action | 527 | /** * Fires when the blog is switched. * * @since MU (3.0.0) * @since 5.4.0 The `$context` parameter was added. * * @param int $new_blog_id New blog ID. * @param int $prev_blog_id Previous blog ID. * @param string $context Additional context. Accepts 'switch' when called from switch_to_blog() * or 'restore' when called from restore_current_blog(). */ |
wp-includes/ms-blogs.php | do_action | 583 | /** * Fires when the blog is switched. * * @since MU (3.0.0) * @since 5.4.0 The `$context` parameter was added. * * @param int $new_blog_id New blog ID. * @param int $prev_blog_id Previous blog ID. * @param string $context Additional context. Accepts 'switch' when called from switch_to_blog() * or 'restore' when called from restore_current_blog(). */ |
wp-includes/ms-blogs.php | do_action | 617 | /** * Restore the current blog, after calling switch_to_blog(). * * @see switch_to_blog() * @since MU (3.0.0) * * @global wpdb $wpdb WordPress database abstraction object. * @global array $_wp_switched_stack * @global int $blog_id * @global bool $switched * @global string $table_prefix * @global WP_Object_Cache $wp_object_cache * * @return bool True on success, false if we're already on the current blog. */ |
wp-includes/ms-blogs.php | do_action | 674 | /** * Restore the current blog, after calling switch_to_blog(). * * @see switch_to_blog() * @since MU (3.0.0) * * @global wpdb $wpdb WordPress database abstraction object. * @global array $_wp_switched_stack * @global int $blog_id * @global bool $switched * @global string $table_prefix * @global WP_Object_Cache $wp_object_cache * * @return bool True on success, false if we're already on the current blog. */ |
Hook Parameters
Parameter Type | Name | Description |
---|---|---|
int | $new_blog_id | New blog ID. |
int | $prev_blog_id | Previous blog ID. |
string | $context | Additional context. Accepts 'switch' when called from switch_to_blog() |
int | $new_blog_id | New blog ID. |
int | $prev_blog_id | Previous blog ID. |
string | $context | Additional context. Accepts 'switch' when called from switch_to_blog() |
int | $new_blog_id | New blog ID. |
int | $prev_blog_id | Previous blog ID. |
string | $context | Additional context. Accepts 'switch' when called from switch_to_blog() |
int | $new_blog_id | New blog ID. |
int | $prev_blog_id | Previous blog ID. |
string | $context | Additional context. Accepts 'switch' when called from switch_to_blog() |