action

jetpack_site_registered

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

How to use this hook

See “How to use actions and filters to customize Jetpack”.

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' );