WordPress action hook

jetpack_dashboard_widget

Defined by Jetpack and fired by 2 plugins in total, running on 3M+ sites between them.

“Fires when the dashboard is loaded, but no longer used anywhere in the Jetpack plugin. The action is still available for backward compatibility.”

How to use jetpack_dashboard_widget

It's an action: your callback runs at that point. Nothing needs to be returned. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_action( 'jetpack_dashboard_widget', function() {
	// Your code runs here.
}, 10, 1 );

Argument names come from Jetpack's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

2 plugins that fire jetpack_dashboard_widget

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. Jetpack icon Jetpack3+ million installs do_action( 'jetpack_dashboard_widget' ) class-jetpack-stats-dashboard-widget.php:145
  2. Jetpack Stats icon Jetpack Stats1,000+ installs do_action( 'jetpack_dashboard_widget' ) jetpack_vendor/automattic/jetpack-stats-admin/src/class-wp-dashboard-odyssey-widget.php:91

Need a customisation built on this hook?

Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.