jetpack_dashboard_switcher_changed_view
jetpack_dashboard_switcher_changed_view
Appears in: jetpack.10.0, jetpack.10.1, jetpack.10.2, jetpack.10.2.1, jetpack.10.7, jetpack.10.9, jetpack.11.0, jetpack.11.1, jetpack.11.1.2, jetpack.11.2, jetpack.11.3.1, jetpack.11.3.2, jetpack.11.4, jetpack.11.5.1, jetpack.11.6, jetpack.11.8, jetpack.11.8.4, jetpack.11.9, jetpack.11.9.1, jetpack.12.0, jetpack.12.1, jetpack.12.1.1, jetpack.12.2.1, jetpack.12.3, jetpack.12.5, jetpack.12.6, jetpack.12.6.1, jetpack.12.7.1, jetpack.12.8, jetpack.12.8.1, jetpack.12.9, jetpack.12.9.3, jetpack.13.0, jetpack.13.1.1, jetpack.13.1.3, jetpack.13.2, jetpack.13.2.1, jetpack.13.3.1, jetpack.13.5, jetpack.13.6, jetpack.13.7, jetpack.13.8, jetpack.13.8.1, jetpack.13.9.1, jetpack.14.0, jetpack.14.1
Hook Type: action
See hook in action
Displaying hooks found in version: jetpack.14.1do_action('jetpack_dashboard_switcher_changed_view') is found 1 times:
- /jetpack_vendor/automattic/jetpack-masterbar/src/admin-menu/class-base-admin-menu.php line 702
* * @param string The current screen of the user. * @param string The preferred view the user selected. */ \do_action( 'jetpack_dashboard_switcher_changed_view', $current_screen, $preferred_view ); if ( self::DEFAULT_VIEW === $preferred_view ) { // Redirect to default view if that's the newly preferred view. $menu_mappings = require __DIR__ . '/menu-mappings.php'; if ( isset( $menu_mappings[ $current_screen ] ) ) { // Using `wp_redirect` intentionally because we're redirecting to Calypso.