Site Kit by Google 1.192.0 has 21 actions and 70 filters, read directly from its source code on Nov 17, 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 Site Kit by Google fires an action
add_action( 'googlesitekit_render_sign_in_with_google_button', function( $arg1 ) {
// Your code runs here.
}, 10, 1 );
// Change a value Site Kit by Google is about to use
add_filter( 'googlesitekit_reader_revenue_manager_cta_post_types', function( $settings ) {
// Change $settings here.
return $settings;
}, 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
-
/** * Display the Sign in with Google button. */ do_action( 'googlesitekit_render_sign_in_with_google_button', array( 'class' => 'woocommerce-form-row form-row', ) ); -
/** * Filters the post types where Reader Revenue Manager CTAs should appear. */ apply_filters( 'googlesitekit_reader_revenue_manager_cta_post_types', $settings['postTypes'] ); -
/** * Fires when the tag has been initialized which means that the tag will be * rendered in the current request. */ do_action( "googlesitekit_{$this->module_slug}_init_tag", $this->tag_id ); -
/** * Fires when the tag has been initialized which means that the tag will be * rendered in the current request. */ do_action( "googlesitekit_{$this->module_slug}_init_tag_amp", $this->tag_id ); -
/** * Filters whether the tag requires user consent before loading. */ apply_filters( "googlesitekit_{$this->module_slug}_tag_amp_block_on_consent", false ); -
/** * Filters whether or not the AMP tag should be blocked from rendering. */ apply_filters( "googlesitekit_{$this->module_slug}_tag_amp_blocked", false ); -
/** * Filters whether or not the tag should be blocked from rendering. */ apply_filters( "googlesitekit_{$this->module_slug}_tag_blocked", false ); -
/** * Filters the admin data to pass to JS. */ apply_filters( 'googlesitekit_admin_data', $admin_data ); -
/** * Filters the list of available admin notices. */ apply_filters( 'googlesitekit_admin_notices', array() ); -
/** * Filters the list of available pointers. */ apply_filters( 'googlesitekit_admin_pointers', array() ); -
/** * Display server rendered content after JS-based adminbar modules. */ do_action( 'googlesitekit_adminbar_modules_after' ); -
/** * Display server rendered content before JS-based adminbar modules. */ do_action( 'googlesitekit_adminbar_modules_before' ); -
/** * Filters the AdSense account ID to use. */ apply_filters( 'googlesitekit_adsense_account_id', '' ); -
/** * Filters the gtag configuration options for the amp-analytics tag. */ apply_filters( 'googlesitekit_amp_gtag_opt', $gtag_amp_opt ); -
/** * Fires when the Advanced_Tracking class is ready to receive event lists. */ do_action( 'googlesitekit_analytics_register_event_lists', $this->event_list_registry ); -
/** * Filters whether or not the Analytics tracking snippet is output for the * current request. */ apply_filters( 'googlesitekit_analytics_tracking_disabled', $disabled ); -
/** * Preload common data by specifying an array of REST API paths that will be * preloaded. */ apply_filters( 'googlesitekit_apifetch_preload_paths', array() ); -
/** * Filters the list of assets that Site Kit should register. */ apply_filters( 'googlesitekit_assets', $assets ); -
/** * Filters the list of required Google OAuth scopes. */ apply_filters( 'googlesitekit_auth_scopes', array() ); -
/** * Fires when the current user has just been authorized to access Google APIs. */ do_action( 'googlesitekit_authorize_user', $token_response, $scopes, $previous_scopes ); -
/** * Filters core module slugs before registering them in the module registry. * Each slug presented on this array will be registered for inclusion. If a * module is forced to be active, then it will be included even if the module * slug is removed from this filter. */ apply_filters( 'googlesitekit_available_modules', array_keys( $this->core_modules ) ); -
/** * Filters the canonical home URL considered by Site Kit. */ apply_filters( 'googlesitekit_canonical_home_url', home_url() ); -
/** * Filters the connected modules. */ apply_filters( 'googlesitekit_connected_modules', array() ); -
/** * Filters the consent category mapping. */ apply_filters( 'googlesitekit_consent_category_map', array( 'statistics' => array( 'analytics_storage' ), 'marketing' => array( 'ad_storage', 'ad_user_data', 'ad_personalization' ), 'functional' => array( 'functionality_storage', 'security_storage' ), 'preferences' => array( 'personalization_storage' ), ) ); -
/** * Filters the consent mode defaults. */ apply_filters( 'googlesitekit_consent_defaults', array( 'ad_personalization' => 'denied', 'ad_storage' => 'denied', 'ad_user_data' => 'denied', 'analytics_storage' => 'denied', 'functionality_storage' => 'denied', 'security_storage' => 'denied', 'personalization_storage' => 'denied', 'region' => Regions::get_regions(), 'wait_for_update' => 500, ) ); -
/** * Filters the status of consent mode in Site Kit. */ apply_filters( 'googlesitekit_consent_mode_status', 'disabled' ); -
/** * Filters the allowed post types for custom dimensions tracking. */ apply_filters( 'googlesitekit_custom_dimension_valid_post_types', array( 'post' ) ); -
/** * Filters the dashboard sharing inline data to pass to JS. */ apply_filters( 'googlesitekit_dashboard_sharing_data', $inline_data ); -
/** * Allows the callback to be filtered during tests. */ apply_filters( 'googlesitekit_exit_handler', $callback ); -
/** * Filters feature metrics data sent with the features request. */ apply_filters( 'googlesitekit_feature_metrics', array() ); -
/** * Filters additional context data sent with the body of a remote-controlled * features request. */ apply_filters( 'googlesitekit_features_request_data', $body ); -
/** * Filters the IP version to force hostname resolution with. */ apply_filters( 'googlesitekit_force_ip_resolve', null ); -
/** * Filters the gtag configuration options for the Analytics snippet. */ apply_filters( 'googlesitekit_gtag_opt', $gtag_opt ); -
/** * Filters the hard reset option, which is `false` by default. */ apply_filters( 'googlesitekit_hard_reset_enabled', false ); -
/** * Filters the Guzzle HTTP client configuration used for Google API requests. */ apply_filters( 'googlesitekit_http_client_config', $http_client_config ); -
/** * Fires when Site Kit has fully initialized. */ do_action( 'googlesitekit_init' ); -
/** * Filters the most basic inline data to pass to JS. */ apply_filters( 'googlesitekit_inline_base_data', $inline_data ); -
/** * Filters the inline modules data to pass to JS. */ apply_filters( 'googlesitekit_inline_modules_data', array() ); -
/** * Filters the data relevant to trackEvent calls to pass to JS. */ apply_filters( 'googlesitekit_inline_tracking_data', $inline_data ); -
/** * Fires when intents are collected. */ do_action( 'googlesitekit_intents_register', $this ); -
/** * Filters a feature flag's status (on or off). */ apply_filters( 'googlesitekit_is_feature_enabled', false, $feature ); -
/** * Filters the recoverable status of the module. */ apply_filters( 'googlesitekit_is_module_recoverable', false, $this->slug ); -
/** * Filters whether network mode is active in Site Kit. */ apply_filters( 'googlesitekit_is_network_mode', false ); -
/** * Site Kit oAuth Secret is a JSON string of the Google Cloud Platform web * application used for Site Kit that will be associated with this account. * This is meant to be a temporary way to specify the client secret until the * authentication proxy has been completed. This filter can be specified from a * separate theme or plugin. */ apply_filters( 'googlesitekit_oauth_secret', '' ); -
/** * Filters the product post type. */ apply_filters( 'googlesitekit_product_post_type', 'product' ); -
/** * Filters the setup mode. */ apply_filters( 'googlesitekit_proxy_setup_mode', $metadata['mode'] ); -
/** * Filters parameters included in the proxy setup URL. */ apply_filters( 'googlesitekit_proxy_setup_url_params', $query_params ); -
/** * Filters the Reader Revenue Manager product ID. */ apply_filters( 'googlesitekit_reader_revenue_manager_product_id', $this->product_id ); -
/** * Fires when the current user has just been reauthorized to access Google APIs * with a refreshed access token. */ do_action( 'googlesitekit_reauthorize_user', $token_response ); -
/** * Filter to allow setting a custom reference date for testing purposes. */ apply_filters( 'googlesitekit_reference_date', null ); -
/** * Filters the list of available REST routes. */ apply_filters( 'googlesitekit_rest_routes', $routes ); -
/** * Filters whether the Site Kit plugin should consider its setup to be * completed. */ apply_filters( 'googlesitekit_setup_complete', true ); -
/** * Filters the setup data to pass to JS, needed during the dashboard page load. */ apply_filters( 'googlesitekit_setup_data', array() ); -
/** * Filters whether the Site Kit WordPress dashboard widget should be displayed. */ apply_filters( 'googlesitekit_show_wp_dashboard_widget', true ); -
/** * Filters the reference site URL to use for stats. */ apply_filters( 'googlesitekit_site_url', $site_url ); -
/** * Filters the user inline data to pass to JS. */ apply_filters( 'googlesitekit_user_data', $inline_data ); -
/** * Verifies site ownership using the given token and verification method. */ do_action( 'googlesitekit_verify_site_ownership', $token, $method ); -
/** * This filter is documented in wp-includes/class-http.php. */ apply_filters( 'https_ssl_verify', true, null ); -
/** * This filter is documented in wp-login.php. */ apply_filters( 'login_redirect', $redirect_to, $redirect_to, $user ); -
/** * This filter is documented in wp-login.php */ do_action( 'wp_login', $user->user_login, $user ); -
apply_filters( 'googlesitekit_is_module_connected', false, $module ); -
apply_filters_deprecated( "googlesitekit_{$this->module_slug}_tag_block_on_consent", array( false ), ...$deprecated_args ); -
do_action( 'googlesitekit_reset' ); -
do_action( 'googlesitekit_activation', $network_wide ); -
apply_filters( 'googlesitekit_ads_measurement_connection_checks', array() ); -
apply_filters( 'googlesitekit_allow_tracking_disabled', $settings['useSnippet'] ); -
apply_filters( 'googlesitekit_allowed_tag_environment_types', array( 'production' ) ); -
apply_filters( 'googlesitekit_amp_auto_ads_attributes', $options, $this->tag_id, $this->story_ad_slot_id ); -
apply_filters( 'googlesitekit_amp_story_auto_ads_attributes', $options, $this->tag_id, $this->story_ad_slot_id ); -
do_action( 'googlesitekit_analytics_tracking_opt_out', $property_id, $account_id ); -
apply_filters( 'googlesitekit_auto_ads_opt', $auto_ads_opt, $this->tag_id ); -
do_action( 'googlesitekit_deactivation', $network_wide ); -
apply_filters( 'googlesitekit_font_families', $font_families ); -
apply_filters( 'googlesitekit_generator', sprintf( '<meta name="generator" content="Site Kit by Google %s" />', esc_attr( GOOGLESITEKIT_VERSION ) ) ); -
apply_filters( 'googlesitekit_module_exists', false, 'analytics-4' ); -
do_action( "googlesitekit_pre_save_settings_{$slug}" ); -
do_action( "googlesitekit_save_settings_{$slug}" ); -
do_action( 'googlesitekit_setup_gtag', $this ); -
do_action( 'googlesitekit_uninstallation' ); -
apply_filters( 'query_vars', $wp->public_query_vars ); -
apply_filters( 'request', $query_args ); -
apply_filters( 'the_title', $post->post_title, $post->ID ); -
apply_filters( 'woocommerce_checkout_registration_enabled', 'yes' === get_option( 'woocommerce_enable_signup_and_login_from_checkout' ) ); -
do_action( 'woocommerce_login_failed' ); -
apply_filters( 'woocommerce_login_redirect', $redirect_to, $user ); -
apply_filters( 'wp_mail_from', '' );
Generated from Site Kit by Google'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: