Fires when a site is registered on WordPress.com.
Parameters
- $json
int ->jetpack_id Jetpack Blog ID.
- $json
string ->jetpack_secret Jetpack Blog Token.
- $jetpack_public
(int | bool) Is the site public.
Changelog
- Introduced in Jetpack 1.7.0
How to use this hook
Notes
This action fires when a site is registered on WordPress.com. You could consequently use it to make any changes to your site as soon as your Jetpack site gets connected to WordPress.com. In the example below, we’ll change one of Jetpack’s options, controlling the “Jumpstart” box appearing on the Jetpack menu page as soon as a Jetpack site gets connected to WordPress.com.
/**
* Never display the Jetpack Jumpstart module.
*/
function jeherve_force_dismiss_jetpack_jumpstart() {
if ( class_exists( 'Jetpack_Options' ) ) {
Jetpack_Options::update_option( 'jumpstart', 'jumpstart_dismissed' );
}
}
add_action( 'jetpack_site_registered', 'jeherve_force_dismiss_jetpack_jumpstart' );