Search Exclude 2.6.8 has 8 actions and 25 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 Search Exclude fires an action
add_action( 'jetpack_activate_module', function( $module, $success ) {
// Your code runs here.
}, 10, 2 );
// Change a value Search Exclude is about to use
add_filter( 'jetpack_active_modules', function( $active ) {
// Change $active here.
return $active;
}, 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
-
jetpack_activate_module
action/** * 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 ); -
jetpack_active_modules
filter/** * Allow filtering of the active modules. */ apply_filters( 'jetpack_active_modules', $active ); -
jetpack_admin_js_script_data
filter/** * Filter the admin script data. */ apply_filters( 'jetpack_admin_js_script_data', $data ); -
/** * Filters the value of the constant. */ apply_filters( 'jetpack_constant_default_value', null, $name ); -
jetpack_deactivate_module
action/** * 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 ); -
/** * 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 ); -
/** * 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 ); -
jetpack_get_module
filter/** * Filter the returned data about a module. */ apply_filters( 'jetpack_get_module', $mod, $module, $file ); -
jetpack_get_module_path
filter/** * Filters the path of a modules. */ apply_filters( 'jetpack_get_module_path', JETPACK__PLUGIN_DIR . "modules/$slug.php", $slug ); -
jetpack_i18n_state
filter/** * Filters the i18n state data for use by Webpack bundles built with * `@automattic/i18n-loader-webpack-plugin`. */ apply_filters( 'jetpack_i18n_state', $data ); -
jetpack_is_coming_soon
filter/** * Filters the is_coming_soon check. */ apply_filters( 'jetpack_is_coming_soon', $is_coming_soon ); -
jetpack_is_development_site
filter/** * Filters is_development_site check. */ apply_filters( 'jetpack_is_development_site', $is_dev_site ); -
jetpack_is_frontend
filter/** * Filter whether the current request is for accessing the frontend. */ apply_filters( 'jetpack_is_frontend', $is_frontend, $send_vary_headers ); -
jetpack_is_in_safe_mode
filter/** * Filters in_safe_mode check. */ apply_filters( 'jetpack_is_in_safe_mode', $in_safe_mode ); -
jetpack_is_local_site
filter/** * Filters is_local_site check. */ apply_filters( 'jetpack_is_local_site', $is_local ); -
jetpack_is_private_site
filter/** * Filters the is_private_site check. */ apply_filters( 'jetpack_is_private_site', $is_private_site ); -
jetpack_is_staging_site
filter/** * Filters is_staging_site check. */ apply_filters( 'jetpack_is_staging_site', $is_staging ); -
jetpack_known_staging
filter/** * Filters the flags of known staging sites. */ apply_filters( 'jetpack_known_staging', $known_staging ); -
jetpack_module_feature
filter/** * Filters the feature array on a module. */ apply_filters( 'jetpack_module_feature', $mod['feature'], $module, $mod ); -
jetpack_offline_mode
filter/** * Filters Jetpack's offline mode. */ apply_filters( 'jetpack_offline_mode', $offline_mode ); -
jetpack_photon_url
filter/** * Filters the site icon using Photon. */ apply_filters( 'jetpack_photon_url', get_site_icon_url(), array( 'w' => 64 ) ); -
jetpack_pre_activate_module
action/** * Fires before a module is activated. */ do_action( 'jetpack_pre_activate_module', $module, $exit, $redirect ); -
/** * Fires when a module is deactivated. */ do_action( 'jetpack_pre_deactivate_module', $module ); -
/** * Filter the public script data. */ apply_filters( 'jetpack_public_js_script_data', $data ); -
apply_filters( 'searchexclude_filter_permissions', 'edit_others_pages' ); -
install_plugins_tabs
filterapply_filters( 'install_plugins_tabs', $tabs ); -
qlse_activation
actiondo_action( 'qlse_activation' ); -
qlse_deactivation
actiondo_action( 'qlse_deactivation' ); -
searchexclude_filter_search
filterapply_filters( 'searchexclude_filter_search', $allow_exclude, $query );
Generated from Search Exclude's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Can't find the right hook?
We can build the customisation for you. Describe what you need: