Jetpack Stats 1.0.0 has 135 actions and 204 filters, read directly from its source code on Nov 18, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when Jetpack Stats fires an action
add_action( 'jetpack_xmlrpc_server_event', function( $arg1, $arg2, $arg3, $user ) {
// Your code runs here.
}, 10, 4 );
// Change a value Jetpack Stats is about to use
add_filter( 'jetpack_package_versions', function( $value ) {
// Change $value here.
return $value;
}, 10, 1 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * Happens on various request handling events in the Jetpack XMLRPC server. The * action combines several types of events: - remote_authorize - * remote_provision - get_user. */ do_action( 'jetpack_xmlrpc_server_event', 'remote_authorize', 'begin', array(), $user ); -
/** * Obtains the package versions. */ apply_filters( 'jetpack_package_versions', array() ); -
/** * This filter is documented in * wp-admin/includes/class-wp-plugins-list-table.php */ apply_filters( 'all_plugins', get_plugins() ); -
/** * Filter the list of callables that are manageable via the JSON API. */ apply_filters( 'jetpack_sync_callable_whitelist', self::$default_callable_whitelist ); -
/** * Fires when the client needs to sync an updated user. */ do_action( 'jetpack_sync_save_user', $user_id, $this->get_flags( $user_id ) ); -
/** * This filter is documented in core/src/wp-includes/pluggable.php */ do_action( 'wp_login_failed', $user_data->login, $error ); -
/** * This filter is documented in wp-includes/class-wp-http-streams.php */ apply_filters( 'https_local_ssl_verify', false ); -
/** * Filter to enable/disable Jetpack AI. */ apply_filters( 'jetpack_ai_enabled', true ); -
/** * Filter the URL used when connecting a user to a WordPress.com account. */ apply_filters( 'jetpack_build_authorize_url', $url, $raw ); -
/** * Trigger action to alert $callable sync listener that a theme was edited. */ do_action( 'jetpack_edited_theme', $query_params['theme'], $theme_data ); -
/** * Filters the expiration time for the stats cache. */ apply_filters( 'jetpack_fetch_stats_cache_expiration', self::STATS_CACHE_EXPIRATION_IN_MINUTES * MINUTE_IN_SECONDS ); -
/** * Fires when a full sync is cancelled. */ do_action( 'jetpack_full_sync_cancelled' ); -
/** * Fires when a full sync ends. This action is serialized and sent to the * server. */ do_action( 'jetpack_full_sync_end', '', $range ); -
/** * Fires when a full sync begins. This action is serialized and sent to the * server so that it knows a full sync is coming. */ do_action( 'jetpack_full_sync_start', $config, $range ); -
/** * This filter is documented in the * Automattic\Jetpack\JITMS\Post_Connection_JITM class. */ apply_filters( 'jetpack_just_in_time_msg_cache', true ); -
/** * This filter is documented in packages/status/src/class-status.php */ apply_filters( 'jetpack_offline_mode', false ); -
/** * This filter is already documented in * json-endpoints/jetpack/class.wpcom-json-api-get-option-endpoint.php */ apply_filters( 'jetpack_options_whitelist', self::$default_options_whitelist ); -
/** * This action is documented in projects/packages/jitm/src/class-jitm.php */ do_action( 'jetpack_registered_jitms' ); -
/** * Filters whether the sync_error_idc option is valid. */ apply_filters( 'jetpack_sync_error_idc_validation', $is_valid ); -
/** * This filter is documented in projects/packages/sync/src/class-modules.php */ apply_filters( 'jetpack_sync_modules', Modules::DEFAULT_SYNC_MODULES ); -
jetpack_sync_multisite_callable_whitelist
filter Used by 9 plugins β Copy link Customise this hook/** * Filter the list of multisite callables that are manageable via the JSON API. */ apply_filters( 'jetpack_sync_multisite_callable_whitelist', self::$default_multisite_callable_whitelist ); -
/** * Filter the list of WordPress options that are manageable via the JSON API. */ apply_filters( 'jetpack_sync_options_whitelist', $options_whitelist ); -
/** * Allows us to keep track of all the actions that have been sent. Allows us to * calculate the progress of specific actions. */ do_action( 'jetpack_sync_processed_actions', $processed_items ); -
/** * Fires on every request before default loading sync sender code. Return false * to not load sync sender code that serializes pending data and sends it to * WPCOM for processing. */ apply_filters( 'jetpack_sync_sender_should_load', self::should_initialize_sender() ); -
/** * Trigger action to alert $callable sync listener that a widget was edited. */ do_action( 'jetpack_widget_edited', $widget ); -
/** * This filter is documented in core/src/wp-login.php */ apply_filters( 'login_redirect', $redirect_to, $_request_redirect_to, $user ); -
/** * This action is documented in wp-admin/admin-header.php */ do_action( 'admin_head' ); -
/** * This action is documented in wp-admin/admin-header.php */ do_action( "admin_head-{$hook_suffix}" ); -
/** * Fires immediately before an object-term relationship is deleted. */ do_action( 'delete_term_relationships', $object_id, $tt_ids_sanitized ); -
/** * Fires immediately after an object-term relationship is deleted. */ do_action( 'deleted_term_relationships', $object_id, $taxonomy_tt_ids ); -
/** * Use the filter to provide custom HTML elecontainer ID. */ apply_filters( 'identity_crisis_container_id', null ); -
/** * Trigger a change to a specific update that we want to sync. Triggers one of * the following actions: - jetpack_{$transient}_change - * jetpack_update_plugins_change - jetpack_update_themes_change */ do_action( "jetpack_{$transient}_change", $value ); -
/** * Fires when a specific module is activated. */ do_action( 'jetpack_activate_module', $module, $success ); -
/** * Fires when a module is activated. The dynamic part of the filter, $module, * is the module slug. */ do_action( "jetpack_activate_module_{$module}", $module ); -
/** * Allow filtering of the active modules. */ apply_filters( 'jetpack_active_modules', $active ); -
/** * Filter the admin script data. */ apply_filters( 'jetpack_admin_js_script_data', $data ); -
/** * Allow to filter the affiliate code. */ apply_filters( 'jetpack_affiliate_code', get_option( 'jetpack_affiliate_code', '' ) ); -
/** * Acton fired when the master user has agreed to the terms of service. */ do_action( 'jetpack_agreed_to_terms_of_service' ); -
/** * Filters the API URL that Jetpack uses for server communication. */ apply_filters( 'jetpack_api_url', rtrim( $api_base . $relative_url, '/\\' ) . $api_version, $relative_url, $api_base, $api_version ); -
/** * Filter the type of authorization. 'calypso' completes authorization on * wordpress.com/jetpack/connect while 'jetpack' ( or any other value ) * completes the authorization at jetpack.wordpress.com. */ apply_filters( 'jetpack_auth_type', 'calypso' ); -
/** * Action fired when the master user has been authorized. */ do_action( 'jetpack_authorize_ending_authorized', $data ); -
/** * Action fired when a secondary user has been authorized. */ do_action( 'jetpack_authorize_ending_linked' ); -
/** * Action fired when user authorization starts. */ do_action( 'jetpack_authorize_starting' ); -
/** * Helps Sync log that a got cleared from inactive. */ do_action( 'jetpack_cleared_inactive_widgets' ); -
/** * Fires after the Jetpack client is authorized to communicate with * WordPress.com. */ do_action( 'jetpack_client_authorized', Jetpack_Options::get_option( 'id' ) ); -
/** * SSL verification (`sslverify`) for the JetpackClient remote request defaults * to off, use this filter to force it on. */ apply_filters( 'jetpack_client_verify_ssl_certs', false ); -
/** * Filter the URL of the first time the user gets redirected back to your site * for connection data processing. */ apply_filters( 'jetpack_connect_processing_url', admin_url( 'admin.php' ) ); -
/** * Filter the URL to redirect the user back to when the authorization process * is complete. */ apply_filters( 'jetpack_connect_redirect_url', $redirect ); -
/** * Filters the user connection request data for additional property addition. */ apply_filters( 'jetpack_connect_request_body', $body_args ); -
/** * Filters the Connection_Manager instance used by the Connection abilities. */ apply_filters( 'jetpack_connection_abilities_manager', new Connection_Manager() ); -
/** * Filters the account errors. */ apply_filters( 'jetpack_connection_account_errors', $errors, $current_user_email, $wpcom_user_email ); -
jetpack_connection_bypass_error_reporting_gate
filter Used by 10 plugins β Copy link Customise this hook/** * Whether to bypass the gate for the error handling */ apply_filters( 'jetpack_connection_bypass_error_reporting_gate', false ); -
/** * Fires upon the disconnect attempt. Return `false` to prevent the disconnect. */ apply_filters( 'jetpack_connection_delete_all_tokens', true ); -
jetpack_connection_disconnect_site_wpcom
filter Used by 10 plugins β Copy link Customise this hook/** * Fires upon the disconnect attempt. Return `false` to prevent the disconnect. */ apply_filters( 'jetpack_connection_disconnect_site_wpcom', true, $this ); -
/** * Fires inside the admin_notices hook just before displaying the error message * for a broken connection. */ do_action( 'jetpack_connection_error_notice', $displayable_errors ); -
/** * Filters the message to be displayed in the admin notices area when there's a * connection error. */ apply_filters( 'jetpack_connection_error_notice_message', $default_message, $displayable_errors ); -
jetpack_connection_nonce_cleanup_runtime_limit
filter Used by 10 plugins β Copy link Customise this hook/** * Adjust the time limit for the scheduled cleanup. */ apply_filters( 'jetpack_connection_nonce_cleanup_runtime_limit', static::SCHEDULED_CLEANUP_TIME_LIMIT ); -
jetpack_connection_ownership_transferable
filter Used by 10 plugins β Copy link Customise this hook/** * Filters whether the Jetpack connection ownership can be transferred. */ apply_filters( 'jetpack_connection_ownership_transferable', true ); -
/** * Filters a map of plugin slugs to custom logo URLs for the Settings β * Connectors card. */ apply_filters( 'jetpack_connection_plugin_logos', array() ); -
/** * Filters the URL used to reconnect the Jetpack connection. */ apply_filters( 'jetpack_connection_reconnect_url', '' ); -
jetpack_connection_requires_protected_owner
filter Used by 10 plugins β Copy link Customise this hook/** * Filters whether a protected owner is required at this moment. */ apply_filters( 'jetpack_connection_requires_protected_owner', false ); -
jetpack_connection_site_health_badge_label
filter Used by 10 plugins β Copy link Customise this hook/** * Filters the badge label shown in WordPress Site Health for connection tests. */ apply_filters( 'jetpack_connection_site_health_badge_label', __( 'Jetpack Connection', 'jetpack-connection' ) ); -
/** * Filters the connection status data. */ apply_filters( 'jetpack_connection_status', $connection_status ); -
/** * Filters the Jetpack support URL used in connection health tests. */ apply_filters( 'jetpack_connection_support_url', Redirect::get_url( 'jetpack-contact-support' ) ); -
/** * Fires after loading default connection health tests. */ do_action( 'jetpack_connection_tests_loaded', $this ); -
/** * Fires after all connection tokens have been deleted from the local site. */ do_action( 'jetpack_connection_tokens_deleted' ); -
/** * Check for the user's unattached licenses. */ apply_filters( 'jetpack_connection_user_has_license', false, $licenses, $plugin_slug ); -
jetpack_connection_validate_urls_for_idc_mitigation_response
filter Used by 10 plugins β Copy link Customise this hook/** * Allows modifying the response. */ apply_filters( 'jetpack_connection_validate_urls_for_idc_mitigation_response', $response ); -
/** * Filters the value of the constant. */ apply_filters( 'jetpack_constant_default_value', null, $name ); -
/** * Filters the current user connection data. */ apply_filters( 'jetpack_current_user_connection_data', $current_user_connection_data ); -
/** * Fires when the dashboard is loaded, but no longer used anywhere in the * Jetpack plugin. The action is still available for backward compatibility. */ do_action( 'jetpack_dashboard_widget' ); -
/** * Fired after a module has been deactivated. */ do_action( 'jetpack_deactivate_module', $module, $success ); -
/** * Fires when a module is deactivated. The dynamic part of the filter, $module, * is the module slug. */ do_action( "jetpack_deactivate_module_{$module}", $module ); -
/** * Determines if the WP.com testing suite should be included. */ apply_filters( 'jetpack_debugger_run_self_test', false ); -
/** * Signals to the sync listener that a theme was deleted and a sync action * reflecting the deletion and theme slug should be sent */ do_action( 'jetpack_deleted_theme', $stylesheet, $theme_data ); -
/** * Fires when a user is deleted on a site */ do_action( 'jetpack_deleted_user', $deleted_user_id, $reassigned_user_id, $is_multisite ); -
/** * Filter the value of Device_Detection::get_info. */ apply_filters( 'jetpack_device_detection_get_info', $info, $ua, $ua_info ); -
/** * Allows to disable particular raw options. */ apply_filters( 'jetpack_disabled_raw_options', array() ); -
/** * Filters the jetpack_disconnect capability. */ apply_filters( 'jetpack_disconnect_cap', array( 'manage_options' ) ); -
/** * Filter to hide JITMs on certain screens. */ apply_filters( 'jetpack_display_jitms_on_screen', true, $screen->id ); -
/** * This action is documented already in this file */ do_action( 'jetpack_edited_plugin', $plugin, $plugins[ $plugin ] ); -
/** * Fired when we want to log an event to the Jetpack event log. */ do_action( 'jetpack_event_log', 'unlink' ); -
/** * Fires before the first external storage read. */ do_action( 'jetpack_external_storage_init' ); -
jetpack_external_storage_provider_registered
action Used by 10 plugins β Copy link Customise this hook/** * Fires after an external storage provider is registered. */ do_action( 'jetpack_external_storage_provider_registered', $provider ); -
/** * Fires when a specific Jetpack package feature is initalized using the Config * package. */ do_action( "jetpack_feature_{$feature}_enabled" ); -
/** * Filters whether a Jetpack feature flag is enabled. */ apply_filters( 'jetpack_feature_flag_enabled', $default, $name, $definition ); -
/** * Filters whether a specific Jetpack feature flag is enabled. */ apply_filters( "jetpack_feature_flag_enabled_{$name}", $enabled, $definition ); -
/** * Filter to include Force 2FA feature. */ apply_filters( 'jetpack_force_2fa', false ); -
/** * Filter the role to force 2FA for. Defaults to manage_options. */ apply_filters( 'jetpack_force_2fa_cap', 'manage_options' ); -
/** * Filter if an admin notice is deplayed when Force 2FA is required, but SSO is * not enabled. Defaults to true. */ apply_filters( 'jetpack_force_2fa_dependency_notice', true ); -
/** * Filter the login error message. Defaults to a message that explains the user * must use a WordPress.com account with 2FA enabled. */ apply_filters( 'jetpack_force_2fa_login_error_message', sprintf( 'For added security, please log in using your WordPress.com account.<br /><br />Note: Your account must have <a href="%1$s" target="_blank">Two Step Authentication</a> enabled, which can be configured from <a href="%2$s" target="_blank">Security Settings</a>.', 'https://support.wordpress.com/security/two-step-authentication/', 'https://wordpress.com/me/security/two-step' ) ); -
/** * Tells the client to sync all callables to the server */ do_action( 'jetpack_full_sync_callables', true ); -
/** * Tells the client to sync all constants to the server */ do_action( 'jetpack_full_sync_constants', true ); -
/** * Tells the client to sync all options to the server */ do_action( 'jetpack_full_sync_network_options', true ); -
/** * Tells the client to sync all options to the server */ do_action( 'jetpack_full_sync_options', true ); -
/** * Tells the client to sync all theme data to the server */ do_action( 'jetpack_full_sync_theme_data', true ); -
/** * Tells the client to sync all updates to the server */ do_action( 'jetpack_full_sync_updates', true ); -
/** * Filters the array of modules available to be activated. */ apply_filters( 'jetpack_get_available_modules', $modules, $min_version, $max_version, $requires_connection, $requires_user_connection ); -
jetpack_get_available_standalone_modules
filter Used by 28 plugins β Copy link Customise this hook/** * Stand alone plugins need to use this filter to register the modules they * interact with. This will allow them to activate and deactivate these modules * even when Jetpack is not present. Note: Standalone plugins can only interact * with modules that also exist in the Jetpack plugin, otherwise they'll lose * the ability to control it if Jetpack is activated. */ apply_filters( 'jetpack_get_available_standalone_modules', array(), $requires_connection, $requires_user_connection ); -
/** * Filters the URL for a file passed through the get_file_url_for_environment * function. */ apply_filters( 'jetpack_get_file_for_environment', $url, $min_path, $non_min_path ); -
/** * Filter the returned data about a module. */ apply_filters( 'jetpack_get_module', $mod, $module, $file ); -
/** * Filters the path of a modules. */ apply_filters( 'jetpack_get_module_path', JETPACK__PLUGIN_DIR . "modules/$slug.php", $slug ); -
/** * Fires when the site data was successfully returned from the /sites/%d wpcom * endpoint. */ do_action( 'jetpack_get_site_data_success' ); -
/** * Filter which provides Jetpack's decision as to whether the current requestor * can attempt logging in. */ apply_filters( 'jetpack_has_login_ability', $this->has_login_ability_fallback() ); -
/** * Fires when we synchronize all registered options on heartbeat. */ do_action( 'jetpack_heartbeat' ); -
/** * This filter is used to build the array of stats that are bumped once a day * by Jetpack Heartbeat. */ apply_filters( 'jetpack_heartbeat_stats_array', array(), $prefix ); -
/** * Filter the option which decides honor DNT or not. */ apply_filters( 'jetpack_honor_dnt_header_for_stats', false ); -
/** * Filters the i18n state data for use by Webpack bundles built with * `@automattic/i18n-loader-webpack-plugin`. */ apply_filters( 'jetpack_i18n_state', $data ); -
/** * Filters the connection url that users should be redirected to for * re-establishing their connection. */ apply_filters( 'jetpack_idc_authorization_url', rest_ensure_response( $connection->get_authorization_url( null, $redirect_uri ) ) ); -
/** * Fires when Users have requested through Identity Crisis for the connection * to be reset. Should be used to disconnect any connections and reset options. */ do_action( 'jetpack_idc_disconnect' ); -
/** * Action called after initializing Identity Crisis UI. */ do_action( 'jetpack_identity_crisis_ui_init' ); -
/** * Signals to the sync listener that a theme was installed and a sync action * reflecting the installation and the theme info should be sent */ do_action( 'jetpack_installed_theme', $theme->stylesheet, $theme_info ); -
/** * Returns true if the current request should return valid AMP content. */ apply_filters( 'jetpack_is_amp_request', $is_amp_request ); -
/** * Filters the is_coming_soon check. */ apply_filters( 'jetpack_is_coming_soon', $is_coming_soon ); -
/** * Filters is_development_site check. */ apply_filters( 'jetpack_is_development_site', $is_dev_site ); -
/** * Filter whether the current request is for accessing the frontend. */ apply_filters( 'jetpack_is_frontend', $is_frontend, $send_vary_headers ); -
/** * Filters in_safe_mode check. */ apply_filters( 'jetpack_is_in_safe_mode', $in_safe_mode ); -
/** * Filters is_local_site check. */ apply_filters( 'jetpack_is_local_site', $is_local ); -
/** * Filters the is_private_site check. */ apply_filters( 'jetpack_is_private_site', $is_private_site ); -
/** * Filters is_staging_site check. */ apply_filters( 'jetpack_is_staging_site', $is_staging ); -
/** * Allow adding your own custom JITMs after a set of JITMs has been received. */ apply_filters( 'jetpack_jitm_received_envelopes', $envelopes, $message_path ); -
/** * Filter to force display the new Woo logo in Woo JITM's, or not. */ apply_filters( 'jetpack_jitm_use_new_woo_logo', $show_new_logo ); -
/** * Filter to turn off all just in time messages */ apply_filters( 'jetpack_just_in_time_msgs', true ); -
/** * Filters the flags of known staging sites. */ apply_filters( 'jetpack_known_staging', $known_staging ); -
/** * Filter that checks if the user is allowed to see the Licensing UI. `true` * enables it. */ apply_filters( 'jetpack_licensing_ui_enabled', false ); -
/** * Signals to the sync listener that this comment's contents were modified and * a sync action reflecting the change(s) to the content should be sent */ do_action( 'jetpack_modified_comment_contents', $new_comment['comment_ID'], $changes ); -
/** * Filters the feature array on a module. */ apply_filters( 'jetpack_module_feature', $mod['feature'], $module, $mod ); -
jetpack_my_jetpack_should_enable_add_license_screen
filter Used by 8 plugins β Copy link Customise this hook/** * Acts as a feature flag, returning a boolean for whether we should show the * licensing UI. */ apply_filters( 'jetpack_my_jetpack_should_enable_add_license_screen', $is_enabled ); -
/** * Allows filtering whether My Jetpack should be initialized. */ apply_filters( 'jetpack_my_jetpack_should_initialize', $should ); -
/** * Trigger action to alert $callable sync listener that network themes were * disabled. */ do_action( 'jetpack_network_disabled_themes', $newly_disabled_themes, $all_enabled_theme_slugs ); -
/** * Trigger action to alert $callable sync listener that network themes were * enabled */ do_action( 'jetpack_network_enabled_themes', $newly_enabled_themes, $all_enabled_theme_slugs ); -
/** * Filter Jetpack Options. Can be useful in environments when Jetpack is * running with a different setup */ apply_filters( 'jetpack_options', self::get_option_from_database( $name, $default ), $name ); -
/** * Allow for plugins to register supported products. */ apply_filters( 'jetpack_partner_coupon_products', array() ); -
jetpack_partner_coupon_supported_partners
filter Used by 10 plugins β Copy link Customise this hook/** * Allow external code to add additional supported partners. */ apply_filters( 'jetpack_partner_coupon_supported_partners', self::$supported_partners ); -
jetpack_partner_coupon_supported_presets
filter Used by 10 plugins β Copy link Customise this hook/** * Allow external code to add additional supported presets. */ apply_filters( 'jetpack_partner_coupon_supported_presets', self::$supported_presets ); -
/** * Allow to filter the partner subsidiary id. */ apply_filters( 'jetpack_partner_subsidiary_id', get_option( 'jetpack_partner_subsidiary_id', '' ) ); -
/** * Filters the site icon using Photon. */ apply_filters( 'jetpack_photon_url', get_site_icon_url(), array( 'w' => 64 ) ); -
/** * Signals to the sync listener that a plugin was installed and a sync action * reflecting the installation and the plugin info should be sent. */ do_action( 'jetpack_plugin_installed', $this->plugins_installed ); -
/** * Sync that a plugin update failed */ do_action( 'jetpack_plugin_update_failed', $failure['plugin'], $failure['code'], $failure['message'], $failure['state'] ); -
/** * Sync that a plugin update */ do_action( 'jetpack_plugins_updated', $this->plugins_updated, $this->state ); -
/** * Used for syncing deletion of batch post meta */ do_action( 'jetpack_post_meta_batch_delete', $chunk, '_feedback_akismet_values' ); -
/** * Fires before a module is activated. */ do_action( 'jetpack_pre_activate_module', $module, $exit, $redirect ); -
/** * Allows filtering of the pre-connection JITMs. */ apply_filters( 'jetpack_pre_connection_jitms', array() ); -
/** * Fires when a module is deactivated. */ do_action( 'jetpack_pre_deactivate_module', $module ); -
/** * Action fired when the user attempts the registration. */ apply_filters( 'jetpack_pre_register', null ); -
/** * Filter the public script data. */ apply_filters( 'jetpack_public_js_script_data', $data ); -
/** * Action that gets synced when a post type gets published. */ do_action( 'jetpack_published_post', $post_ID, $flags, $post ); -
/** * Filter that is used to add to the post flags ( meta data ) when a post gets * published */ apply_filters( 'jetpack_published_post_flags', $post_flags, $post ); -
jetpack_received_remote_request_response
action Used by 10 plugins β Copy link Customise this hook/** * Fired when the remote request response has been received. */ do_action( 'jetpack_received_remote_request_response', $response ); -
/** * Action fired when reconnection has completed successfully. */ do_action( 'jetpack_reconnection_completed' ); -
/** * Filters the request body for additional property addition. */ apply_filters( 'jetpack_register_request_body', array_merge( array( 'siteurl' => Urls::site_url(), 'home' => Urls::home_url(), 'gmt_offset' => $gmt_offset, 'timezone_string' => (string) get_option( 'timezone_string' ), 'site_name' => (string) get_option( 'blogname' ), 'secret_1' => $secrets['secret_1'], 'secret_2' => $secrets['secret_2'], 'site_lang' => get_locale(), 'timeout' => $timeout, 'stats_id' => $stats_id, 'state' => get_current_user... ); -
/** * Filters the response of jetpack/v4/connection/register endpoint */ apply_filters( 'jetpack_register_site_rest_response', array() ); -
/** * Acton fired when the master user has revoked their agreement to the terms of * service. */ do_action( 'jetpack_reject_terms_of_service' ); -
/** * Hook fired at the end of the jetpack.remoteConnect XML-RPC callback */ do_action( 'jetpack_remote_connect_end' ); -
/** * Filters the remote request url. */ apply_filters( 'jetpack_remote_request_url', $args['url'] ); -
jetpack_remote_xmlrpc_provision_response
filter Used by 10 plugins β Copy link Customise this hook/** * Filters the response of the remote_provision XMLRPC method */ apply_filters( 'jetpack_remote_xmlrpc_provision_response', $response, $request, $user ); -
/** * Remove the default log in form, only leave the WordPress.com log in button. */ apply_filters( 'jetpack_remove_login_form', get_option( 'jetpack_sso_remove_login_form', false ) ); -
/** * Fires when a user is removed from a blog on a multisite installation */ do_action( 'jetpack_removed_user_from_blog', $user_id, $reassigned_user_id ); -
/** * Filters the successful response of the REST API test_connection method */ apply_filters( 'jetpack_rest_connection_check_response', 'success' ); -
/** * Whether to add the X Debug query parameter to the request made to the * Sandbox */ apply_filters( 'jetpack_sandbox_add_profile_parameter', false, $url, $host ); -
/** * Fires when the server sandbox is initialized. This action is used to ensure * that the server sandbox action hooks are set up only once. */ do_action( 'jetpack_server_sandbox_init' ); -
/** * Fires when the Tracking::ajax_tracks() callback has been hooked to the * wp_ajax_jetpack_tracks action. This action is used to ensure that the * callback is hooked only once. */ do_action( 'jetpack_set_tracks_ajax_hook' ); -
/** * Allows sites to opt in for IDC mitigation which blocks the site from syncing * to WordPress.com when the home URL or site URL do not match what * WordPress.com expects. The default value is either true, or the value of * JETPACK_SHOULD_HANDLE_IDC constant if set. */ apply_filters( 'jetpack_should_handle_idc', $default ); -
/** * Action for additional token checking. */ apply_filters( 'jetpack_signature_check_token', array( 'type' => $token_type, 'token_key' => $token_key, 'user_id' => $token->external_user_id, ), $token, $this->raw_post_data ); -
/** * Filter if a site is an automated-transfer site. */ apply_filters( 'jetpack_site_automated_transfer', false, $blog_id ); -
/** * Fires before a site is disconnected. */ do_action( 'jetpack_site_before_disconnected' ); -
/** * Fires after the site record was served, whether it was fetched or read from * the cache. */ do_action( 'jetpack_site_data_fetched', json_decode( $result['body'], true ) ); -
/** * Fires when a site is disconnected. */ do_action( 'jetpack_site_disconnected' ); -
/** * Fires when a site is registered on WordPress.com. */ do_action( 'jetpack_site_registered', $registration_details->jetpack_id, $registration_details->jetpack_secret, $jetpack_public ); -
/** * Fires when a user token is sent along with the registration data. */ do_action( 'jetpack_site_registered_user_token', $registration_details->token ); -
/** * Skips the usuable domain check when connecting a site. */ apply_filters( 'jetpack_skip_usuable_domain_check', false ); -
/** * Filter whether to accept WordPress.com 2FA in place of a local Two-Factor * prompt during SSO login. */ apply_filters( 'jetpack_sso_accept_wpcom_2fa', true, $user_data, $user ); -
/** * Allows plugins the ability to overwrite actions where the SSO form is * allowed to be used. */ apply_filters( 'jetpack_sso_allowed_actions', array( 'login', 'jetpack-sso', 'jetpack_json_api_authorization', 'entered_recovery_mode', ) ); -
jetpack_sso_allowed_username_generate_retries
filter Used by 10 plugins β Copy link Customise this hook/** * Determines how many times the SSO module can attempt to randomly generate a * user. */ apply_filters( 'jetpack_sso_allowed_username_generate_retries', 5 ); -
/** * Determines how long the auth cookie is valid for when a user logs in with * SSO. */ apply_filters( 'jetpack_sso_auth_cookie_expiration', YEAR_IN_SECONDS ); -
/** * Redirect the site's log in form to WordPress.com's log in form. */ apply_filters( 'jetpack_sso_bypass_login_forward_wpcom', false ); -
/** * Display the SSO login form as the default when both the default and SSO * login forms are enabled. */ apply_filters( 'jetpack_sso_default_to_sso_login', true ); -
/** * Filters the disallowed notice for sites in safe mode attempting SSO. */ apply_filters( 'jetpack_sso_disallowed_safe_mode_notice', $error ); -
/** * Filter the message displayed when the default WordPress login form is * disabled. */ apply_filters( 'jetpack_sso_disclaimer_message', $msg ); -
/** * Filter the display of the disclaimer message appearing when default * WordPress login form is disabled. */ apply_filters( 'jetpack_sso_display_disclaimer', true ); -
/** * Fires after we got login information from WordPress.com. */ do_action( 'jetpack_sso_handle_login', $user, $user_data ); -
/** * Toggle the ability to invite new users to create a WordPress.com account. */ apply_filters( 'jetpack_sso_invite_new_users_wpcom', true ); -
/** * Allow extension above Jetpack's SSO form. */ do_action( 'jetpack_sso_login_form_above_wpcom' ); -
/** * Allow extension below Jetpack's SSO form. */ do_action( 'jetpack_sso_login_form_below_wpcom' ); -
/** * Filter the messeage displayed below the SSO button. */ apply_filters( 'jetpack_sso_login_form_explanation_text', sprintf( __( 'You can now save time spent logging in by connecting your WordPress.com account to %s.', 'jetpack-connection' ), esc_html( $site_name ) ) ); -
/** * Link the local account to an account on WordPress.com using the same email * address. */ apply_filters( 'jetpack_sso_match_by_email', $match_by_email ); -
/** * Allow users to register on your site with a WordPress.com account, even * though you disallow normal registrations. If you return a string that * corresponds to a user role, the user will be given that role. */ apply_filters( 'jetpack_sso_new_user_override', $new_user_override, $user_data ); -
/** * Fires before Jetpack's SSO modifies the log in form. */ do_action( 'jetpack_sso_pre_handle_login', $user_data ); -
/** * Is it required to have 2-step authentication enabled on WordPress.com to use * SSO? */ apply_filters( 'jetpack_sso_require_two_step', get_option( 'jetpack_sso_require_two_step', false ) ); -
/** * Filters the "couldn't find your account" notice after an attempted SSO. */ apply_filters( 'jetpack_sso_unknown_user_notice', $error ); -
/** * Filters the WPCOM_Stats instance used by the Stats abilities. */ apply_filters( 'jetpack_stats_abilities_wpcom_stats', new WPCOM_Stats() ); -
/** * Filter the URL used as the Stats tracking pixel. */ apply_filters( 'jetpack_stats_base_url', 'https://pixel.wp.com/' . $gifname ); -
jetpack_stats_dashboard_widget_show_to_user
filter Used by 2 plugins β Copy link Customise this hook/** * Filter whether the Jetpack Stats dashboard widget should be shown to the * current user. By default, the dashboard widget is shown to users who can * manage options or view Stats. */ apply_filters( 'jetpack_stats_dashboard_widget_show_to_user', current_user_can( 'manage_options' ) || current_user_can( 'view_stats' ) ); -
/** * Allow excluding specific IP addresses from being tracked in Stats. Note: for * this to work well, visitors' IP addresses must: - be stored and returned * properly in IP address headers; - not be impacted by any caching setup on * your site. */ apply_filters( 'jetpack_stats_excluded_ips', array() ); -
/** * Filters where the post list table's views column links to. */ apply_filters( 'jetpack_stats_post_list_column_url', $stats_post_url, $post_id ); -
/** * Filter to disable transient cleanup. */ apply_filters( 'jetpack_stats_transient_cleanup_disabled', false ); -
/** * Filter the list of transient prefixes to clean up. */ apply_filters( 'jetpack_stats_transient_cleanup_prefixes', $prefixes ); -
/** * Add an action hook to execute when anything on the whitelist gets sent to * the queue to sync. */ do_action( 'jetpack_sync_action_before_enqueue' ); -
/** * Filters the actor data attached to sync events. */ apply_filters( 'jetpack_sync_actor_data', $actor ); -
/** * Allow or deny sending actor's user data ( IP and UA ) during a sync event */ apply_filters( 'jetpack_sync_actor_user_data', $should_send, $current_filter ); -
/** * Fires when the required settings have been adding to the static * data_settings array. */ do_action( 'jetpack_sync_add_required_data_settings' ); -
/** * Fires when the client needs to add a new term */ do_action( 'jetpack_sync_add_term', $term_object ); -
/** * Fires when a user is added on a site */ do_action( 'jetpack_sync_add_user', $user_id, $this->get_flags( $user_id ) ); -
/** * Modify or reject the data within an action before it is enqueued locally. */ apply_filters( "jetpack_sync_before_enqueue_{$action_name}", $args ); -
/** * Modify or reject the data within an action before it is enqueued locally. */ apply_filters( "jetpack_sync_before_enqueue_{$current_filter}", $args ); -
/** * Modify the data within an action before it is serialized and sent to the * server For example, during full sync this expands Post ID's into full Post * objects, so that we don't have to serialize the whole object into the queue. */ apply_filters( "jetpack_sync_before_send_{$item[0]}", $item[1], $item[2] ); -
/** * Tells the client to sync a callable (aka function) to the server */ do_action( 'jetpack_sync_callable', $name, $value ); -
/** * Filter the list of capabilities that we care about */ apply_filters( 'jetpack_sync_capabilities_whitelist', self::$default_capabilities_whitelist ); -
/** * Filter the list of comment meta data that are manageable via the JSON API. */ apply_filters( 'jetpack_sync_comment_meta_whitelist', self::$comment_meta_whitelist ); -
/** * Tells the client to sync a constant to the server */ do_action( 'jetpack_sync_constant', $name, $value ); -
/** * Filter the list of PHP constants that are manageable via the JSON API. */ apply_filters( 'jetpack_sync_constants_whitelist', self::$default_constants_whitelist ); -
jetpack_sync_core_autoupdated_successfully
action Used by 9 plugins β Copy link Customise this hook/** * Sync event that fires when core autoupdate was successful */ do_action( 'jetpack_sync_core_autoupdated_successfully', $new_wp_version, $this->old_wp_version ); -
jetpack_sync_core_reinstalled_successfully
action Used by 9 plugins β Copy link Customise this hook/** * Sync event that fires when core reinstall was successful */ do_action( 'jetpack_sync_core_reinstalled_successfully', $new_wp_version ); -
/** * Sync event for when core wp network updates to a new db version */ do_action( 'jetpack_sync_core_update_network', $wp_db_version, $old_wp_db_version, $wp_version ); -
/** * Sync event that fires when core update was successful */ do_action( 'jetpack_sync_core_updated_successfully', $new_wp_version, $this->old_wp_version ); -
/** * Allows overriding the offset that the sync cron jobs will first run. This * can be useful when scheduling cron jobs across multiple sites in a network. */ apply_filters( 'jetpack_sync_cron_start_time_offset', $start_time_offset, $hook, $schedule ); -
/** * Fires when the client needs to sync theme support info */ do_action( 'jetpack_sync_current_theme_support', $this->get_theme_info(), $previous_theme ); -
/** * Filter prevents some shortcodes from expanding. */ apply_filters( 'jetpack_sync_do_not_expand_shortcodes', array( 'gallery', 'slideshow', ) ); -
/** * Filter the order data before syncing. */ apply_filters( 'jetpack_sync_filtered_hpos_order_data', $filtered_order_data, $order_object ); -
/** * Allows overriding of the full sync cron schedule which defaults to once * every 5 minutes. */ apply_filters( 'jetpack_sync_full_sync_interval', self::DEFAULT_SYNC_CRON_INTERVAL_NAME ); -
/** * Filters the output of Sync's get_theme callable */ apply_filters( 'jetpack_sync_get_themes_callable', $themes ); -
/** * Allows overriding of the home_url value that is synced back to * WordPress.com. */ apply_filters( 'jetpack_sync_home_url', $url ); -
/** * Used for syncing the end of an import */ do_action( 'jetpack_sync_import_end', $importer, $importer_name ); -
/** * Used for syncing the start of an import */ do_action( 'jetpack_sync_import_start', $importer, $importer_name ); -
/** * Allows overriding of the default incremental sync cron schedule which * defaults to once every 5 minutes. */ apply_filters( 'jetpack_sync_incremental_sync_interval', self::DEFAULT_SYNC_CRON_INTERVAL_NAME ); -
/** * Filter the list of known importers. */ apply_filters( 'jetpack_sync_known_importers', self::$default_known_importers ); -
/** * Fires on every request before default loading sync listener code. Return * false to not load sync listener code that monitors common WP actions to be * serialized. */ apply_filters( 'jetpack_sync_listener_should_load', true ); -
/** * Fires when the server receives two concurrent requests from the same blog */ do_action( 'jetpack_sync_multi_request_fail', $token ); -
/** * Filters the option to enable non-blocking sync. */ apply_filters( 'jetpack_sync_non_blocking', $non_block_enabled ); -
/** * Filter the list of WordPress options that should be synced without content */ apply_filters( 'jetpack_sync_options_contentless', self::$default_options_contentless ); -
/** * Filter the list of post meta data that are manageable via the JSON API. */ apply_filters( 'jetpack_sync_post_meta_whitelist', self::$post_meta_whitelist ); -
jetpack_sync_prevent_sending_comment_data
filter Used by 9 plugins β Copy link Customise this hook/** * Filters whether to prevent sending comment data to .com */ apply_filters( 'jetpack_sync_prevent_sending_comment_data', false, $comment ); -
/** * Filters whether to prevent sending post data to .com */ apply_filters( 'jetpack_sync_prevent_sending_post_data', false, $post ); -
/** * Fires when a new user is registered on a site */ do_action( 'jetpack_sync_register_user', $user_id, $this->get_flags( $user_id ) ); -
/** * Fires when an action is received from a remote Jetpack site */ do_action( 'jetpack_sync_remote_action', $action_name, $args, $user_id, $silent, $timestamp, $sent_timestamp, $queue_id, $token ); -
/** * Fires when an array of actions are received from a remote Jetpack site */ do_action( 'jetpack_sync_remote_actions', $events, $token ); -
/** * Fires when the client needs to sync an new attachment */ do_action( 'jetpack_sync_save_add_attachment', $attachment_id, $attachment ); -
/** * Fires when an existing attachment is added to a post for the first time */ do_action( 'jetpack_sync_save_attach_attachment', $attachment_id, $attachment_after ); -
/** * Filter that is used to add to the post flags ( meta data ) when a post gets * published */ do_action( 'jetpack_sync_save_post', $post_ID, $post, $update, $state ); -
/** * Fires when the client needs to update a term */ do_action( 'jetpack_sync_save_term', $term_object ); -
/** * Fires when the client needs to sync an updated attachment */ do_action( 'jetpack_sync_save_update_attachment', $attachment_id, $attachment_after ); -
/** * Filters query parameters appended to the Sync request URL sent to * WordPress.com. */ apply_filters( 'jetpack_sync_send_data_query_args', $query_args ); -
/** * Allows overriding of the site_url value that is synced back to * WordPress.com. */ apply_filters( 'jetpack_sync_site_url', $url ); -
/** * Comment types present in this list will be synced to WordPress.com. */ apply_filters( 'jetpack_sync_whitelisted_comment_types', self::$comment_types_whitelist ); -
/** * Fires when a WooCommerce product is deleted via wp_delete_post. */ do_action( 'jetpack_sync_woocommerce_product_deleted', $post_id ); -
/** * Fires when a WooCommerce product is trashed via wp_trash_post. */ do_action( 'jetpack_sync_woocommerce_product_trashed', $post_id ); -
jetpack_table_checksum_force_enable_woocommerce
filter Used by 9 plugins β Copy link Customise this hook/** * On WordPress.com, we can't directly check if the site has support for * WooCommerce. Having the option to override the functionality here helps with * syncing WooCommerce tables. */ apply_filters( 'jetpack_table_checksum_force_enable_woocommerce', false ); -
jetpack_table_checksum_force_enable_woocommerce_analytics
filter Used by 9 plugins β Copy link Customise this hook/** * On WordPress.com, WooCommerce runtime classes and Sync modules are not * available while comparing table checksums. This override allows the * Analytics tables to be used there. */ apply_filters( 'jetpack_table_checksum_force_enable_woocommerce_analytics', false ); -
jetpack_table_checksum_force_enable_woocommerce_hpos
filter Used by 9 plugins β Copy link Customise this hook/** * On WordPress.com, we can't directly check if the site has support for * WooCommerce HPOS tables. Having the option to override the functionality * here helps with syncing WooCommerce HPOS tables. */ apply_filters( 'jetpack_table_checksum_force_enable_woocommerce_hpos', false ); -
/** * Filter the URL of the first time the user gets redirected back to your site * for connection data processing. */ apply_filters( 'jetpack_token_processing_url', admin_url( 'admin.php' ) ); -
/** * Filter the URL to redirect the user back to when the authentication process * is complete. */ apply_filters( 'jetpack_token_redirect_url', $redirect ); -
/** * Filters the token request data. */ apply_filters( 'jetpack_token_request_body', array( 'client_id' => Jetpack_Options::get_option( 'id' ), 'client_secret' => $client_secret->secret, 'grant_type' => 'authorization_code', 'code' => $data['code'], 'redirect_uri' => $redirect_uri, ) ); -
/** * Fires after the current user has been unlinked from WordPress.com. */ do_action( 'jetpack_unlinked_user', $user_id ); -
/** * Trigger a change to core update that we want to sync. */ do_action( 'jetpack_update_core_change', $value ); -
/** * Signals to the sync listener that one or more themes was updated and a sync * action reflecting the update and the theme info should be sent */ do_action( 'jetpack_updated_themes', $themes ); -
/** * Fires when the user token gets successfully replaced. */ do_action( 'jetpack_updated_user_token', $user_id, $request['user_token'] ); -
/** * Fires when WooCommerce customer details stored in user meta are updated. */ do_action( 'jetpack_updated_woo_customer_meta', $this->build_minimal_customer_user_object( (int) $customer_id ), array_keys( $updated_props ) ); -
/** * Fires after user has successfully received an auth token. */ do_action( 'jetpack_user_authorized' ); -
jetpack_verify_api_authorization_request_error_double_encode
action Used by 10 plugins β Copy link Customise this hook/** * Jetpack authorisation request Error. */ do_action( 'jetpack_verify_api_authorization_request_error_double_encode' ); -
/** * We've begun verifying the previously generated secret. */ do_action( 'jetpack_verify_secrets_begin', $action, $user ); -
/** * Verifying of the previously generated secret has failed. */ do_action( 'jetpack_verify_secrets_fail', $action, $user, $error ); -
/** * We've succeeded at verifying the previously generated secret. */ do_action( 'jetpack_verify_secrets_success', $action, $user ); -
/** * Action for logging XMLRPC signature verification errors. This data is * sensitive. */ do_action( 'jetpack_verify_signature_error', $this->xmlrpc_verification ); -
/** * Helps Sync log that a widget got added */ do_action( 'jetpack_widget_added', $sidebar, $added_widget, $sidebar_name, $added_widget_name ); -
/** * Helps Sync log that a widgets IDs got moved to in active */ do_action( 'jetpack_widget_moved_to_inactive', $moved_to_inactive_ids, $moved_to_inactive_name ); -
/** * Helps Sync log that a widgte got removed */ do_action( 'jetpack_widget_removed', $sidebar, $removed_widget, $sidebar_name, $removed_widget_name ); -
/** * Helps Sync log that a sidebar id got reordered */ do_action( 'jetpack_widget_reordered', $sidebar, $sidebar_name ); -
/** * Filters whether Jetpack Abilities API registration should run. */ apply_filters( 'jetpack_wp_abilities_enabled', false ); -
/** * Filters whether an Abilities API category or ability should be registered. */ apply_filters( 'jetpack_wp_abilities_should_register', true, $type, $slug ); -
/** * Fires when a user is logged into a site. */ do_action( 'jetpack_wp_login', $user->ID, $user, $this->get_flags( $user->ID ) ); -
/** * Filters the XML-RPC methods available to Jetpack for authenticated users. */ apply_filters( 'jetpack_xmlrpc_methods', $jetpack_methods, $core_methods, $this->user ); -
jetpack_xmlrpc_remote_register_redirect_uri
filter Used by 10 plugins β Copy link Customise this hook/** * Filters the Redirect URI returned by the remote_register XMLRPC method */ apply_filters( 'jetpack_xmlrpc_remote_register_redirect_uri', admin_url() ); -
/** * Filters the successful response of the XMLRPC test_connection method */ apply_filters( 'jetpack_xmlrpc_test_connection_response', 'success' ); -
/** * Filters the XML-RPC methods available to Jetpack for requests signed both * with a blog token or a user token. */ apply_filters( 'jetpack_xmlrpc_unauthenticated_methods', $jetpack_methods, $core_methods, $this->user ); -
/** * Fires after My Jetpack activates a product and filters the result Use this * filter to run additional routines for a product activation on stand-alone * plugins */ apply_filters( "my_jetpack_{$product_slug}_activation", $result ); -
/** * Fires after the My Jetpack package is initialized */ do_action( 'my_jetpack_init' ); -
/** * This filter allows plugin to override the Product class of a given product. * The new class must be a child class of the default one declared in My * Jetpack */ apply_filters( 'my_jetpack_products_classes', $classes ); -
/** * Filters the boot script-module dependencies for the my-jetpack-dashboard * page. */ apply_filters( 'my-jetpack-dashboard_boot_dependencies', $boot_dependencies ); -
/** * Fires when the my-jetpack-dashboard page is initialized so extensions can * register routes and menu items. */ do_action( 'my-jetpack-dashboard_init' ); -
my-jetpack-dashboard-wp-admin_boot_dependencies
filter Used by 8 plugins β Copy link Customise this hook/** * Filters the boot script-module dependencies for the * my-jetpack-dashboard-wp-admin page. */ apply_filters( 'my-jetpack-dashboard-wp-admin_boot_dependencies', $boot_dependencies ); -
/** * Fires when the my-jetpack-dashboard admin page is initialized so extensions * can register routes and menu items. */ do_action( 'my-jetpack-dashboard-wp-admin_init' ); -
/** * Fires after the My Jetpack page is initialized. Allows for enqueuing * additional scripts only on the My Jetpack page. */ do_action( 'myjetpack_enqueue_scripts' ); -
/** * Filters the password strength enforcement settings. */ apply_filters( 'password_checker_common_passwords', $this->common_passwords ); -
/** * Filters the password strength enforcement settings. */ apply_filters( 'password_checker_minimum_entropy_bits', $this->minimum_entropy_bits ); -
/** * Filters the password strength enforcement settings. */ apply_filters( 'password_checker_minimum_password_length', $this->minimum_password_length ); -
/** * Filters the password strength enforcement settings. */ apply_filters( 'password_checker_tests', $tests ); -
/** * This filter is documented in * src/wp-admin/includes/class-wp-plugins-list-table.php */ apply_filters( 'plugin_action_links', $action_links, $plugin_file, $plugin_data, 'all' ); -
/** * This filter is documented in * src/wp-admin/includes/class-wp-plugins-list-table.php */ apply_filters( "plugin_action_links_{$plugin_file}", $action_links, $plugin_file, $plugin_data, 'all' ); -
/** * Fires before Jetpack updates a specific option. */ do_action( "pre_update_jetpack_option_{$name}", $name, $value ); -
/** * This filter is already documented in class.json-api-endpoints.php */ apply_filters( 'rest_api_allowed_post_types', array( 'post', 'page', 'revision' ) ); -
/** * Filters the meta keys accessible by the REST API. */ apply_filters( 'rest_api_allowed_public_metadata', array() ); -
wc_order_attribution_tracking_field_prefix
filter Used by 25 plugins β Copy link Customise this hook/** * Filters the prefix used for order attribution meta keys. */ apply_filters( 'wc_order_attribution_tracking_field_prefix', 'wc_order_attribution_' ); -
woocommerce_analytics_delete_reports_data
action Used by 9 plugins β Copy link Customise this hook/** * Trigger the action to sync the deletion. */ do_action( 'woocommerce_analytics_delete_reports_data', $data ); -
/** * Filter the deletion data before syncing. */ apply_filters( 'woocommerce_analytics_deletion_data', $data ); -
woocommerce_analytics_full_sync_where_sql
filter Used by 9 plugins β Copy link Customise this hook/** * Filter the WHERE SQL for analytics full sync */ apply_filters( 'woocommerce_analytics_full_sync_where_sql', $where, $config ); -
woocommerce_analytics_incorrect_order_status_detected
action Used by 9 plugins β Copy link Customise this hook/** * Trigger the action to fix the order stats. The OrderStatusFixer should be * hooked to this action. */ do_action( 'woocommerce_analytics_incorrect_order_status_detected', $order_id ); -
woocommerce_analytics_missing_orders_detected
action Used by 9 plugins β Copy link Customise this hook/** * Trigger missing orders detected action. */ do_action( 'woocommerce_analytics_missing_orders_detected', $missing_order_ids ); -
/** * Filter the reports data before syncing. */ apply_filters( 'woocommerce_analytics_reports_data', $reports_data, $order ); -
woocommerce_analytics_reports_lookup_data
filter Used by 9 plugins β Copy link Customise this hook/** * Filter the reports lookup data before syncing. */ apply_filters( 'woocommerce_analytics_reports_lookup_data', $report_data, $order, $object_type ); -
/** * Trigger the action to sync the reports data. */ do_action( 'woocommerce_analytics_sync_reports_data', $data ); -
/** * This filter is documented in core/src/wp-includes/user.php */ do_action( 'wp_login', $user->user_login, $user ); -
/** * Filters the class used for handling XML-RPC requests. */ apply_filters( 'wp_xmlrpc_server_class', 'wp_xmlrpc_server' ); -
apply_filters( 'jetpack_is_agent', $cached_result, $user_agent ); -
apply_filters( 'jetpack_sync_checksum_allowed_tables', $this->default_tables ); -
apply_filters( 'jetpack_sync_send_data', $items_to_send, $this->codec->name(), microtime( true ), $queue->id, $checkout_duration, $preprocess_duration, $queue->size(), $buffer->id ); -
apply_filters( 'jetpack_boost_api_client_class', WPCOM_Boost_API_Client::class ); -
apply_filters( 'jetpack_boost_current_url', $current_url ); -
apply_filters( 'jetpack_boost_excluded_query_parameters', self::PARAMS_TO_EXCLUDE ); -
apply_filters( 'jetpack_check_and_send_callables', false ); -
jetpack_client_authorize_already_authorized_url
filter Used by 10 plugins β Copy link Customise this hookapply_filters( 'jetpack_client_authorize_already_authorized_url', admin_url() ); -
do_action( 'jetpack_client_authorize_error', $result ); -
apply_filters( 'jetpack_client_authorize_fallback_url', admin_url() ); -
do_action( 'jetpack_client_authorize_processing' ); -
jetpack_connection_disconnect_site_wpcom_offline_mode
filter Used by 10 plugins β Copy link Customise this hookapply_filters( 'jetpack_connection_disconnect_site_wpcom_offline_mode', false ); -
apply_filters( 'jetpack_connection_get_verified_errors', $displayable_errors, $verified_errors ); -
apply_filters( 'jetpack_connection_secret_generator', array( static::class, 'secret_callable_method' ) ); -
do_action( 'jetpack_explat_initialized' ); -
apply_filters( 'jetpack_full_sync_config', Defaults::$default_full_sync_config ); -
apply_filters( 'jetpack_idc_consumers', array() ); -
apply_filters( 'jetpack_search_ai_answers_enabled', (bool) get_option( 'jetpack_search_ai_answers_enabled', false ) ); -
do_action( "jetpack_sync_before_send_queue_{$queue->id}" ); -
do_action( 'jetpack_sync_checksum', $store->checksum_all() ); -
do_action( 'jetpack_valid_failed_login_attempt', $failed_attempt ); -
apply_filters( "jitm_{$envelope->content->hook}", $envelope->content ); -
apply_filters( "jitm_{$envelope->CTA->hook}", $envelope->url ); -
apply_filters( 'my_jetpack_red_bubble_notification_slugs', $red_bubble_alerts ); -
apply_filters( 'the_content', $post->post_content ); -
apply_filters( 'the_excerpt', $post->post_excerpt ); -
do_action( 'woocommerce_remove_order_item_ids', $order_item_ids );
Generated from Jetpack Stats's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and weβll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the pluginβs own hooks.
- Code written against the pluginβs actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2β3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the pluginβs files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3β7 business days
Choose thisNot sure which fits? Describe what you need and weβll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: