Insert Headers And Footers 3.2.0 has 6 actions and 22 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 Insert Headers And Footers fires an action
add_action( 'wp_wpb_sdk_after_uninstall', function( $slug ) {
// Your code runs here.
}, 10, 1 );
// Change a value Insert Headers And Footers is about to use
add_filter( 'wp_hnf_body_script', 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
-
wp_hnf_body_script
filter/** * Filter to add or exclude scripts to and from the frontend body. */ apply_filters( 'wp_hnf_body_script', true ); -
wp_hnf_header_script
filter/** * Filter to add or exclude scripts to and from the frontend header. */ apply_filters( 'wp_hnf_header_script', true ); -
/** * Filter allowed SDK opt-out setting keys for AJAX toggles. */ apply_filters( 'wpb_sdk_allowed_opt_out_settings', $allowed, $this->slug ); -
/** * Filter allowed page slugs for post-opt-in redirect. */ apply_filters( 'wpb_sdk_allowed_redirect_page_slugs', $allowed, $slug, $module ); -
wpb_sdk_api_endpoint
filter/** * Filter telemetry API base URL for a product. */ apply_filters( 'wpb_sdk_api_endpoint', $endpoint, $slug ); -
wpb_sdk_custom_optin_slugs
filter/** * Filter products that use a custom opt-in form instead of * wpb-sdk-optin-form.php. */ apply_filters( 'wpb_sdk_custom_optin_slugs', $custom, $slug ); -
/** * Filter slugs that manage their own Opt In/Out plugin row links (not the * SDK). */ apply_filters( 'wpb_sdk_legacy_opt_action_link_slugs', $legacy, $slug ); -
wpb_sdk_optin_template_vars
filter/** * Filter template variables passed to opt-in view. */ apply_filters( 'wpb_sdk_optin_template_vars', $optin_vars, $slug, $module ); -
wpb_sdk_plugin_action_links
filter/** * Append product-specific plugin row links (Settings, etc.) after SDK * opt-in/out. */ apply_filters( 'wpb_sdk_plugin_action_links', $links, $this->slug, $this->module ); -
/** * Filter whether visiting the opt-in page should redirect away. */ apply_filters( 'wpb_sdk_should_redirect_from_optin_page', 'yes' === $decision, $slug, $decision ); -
wp_wpb_sdk_after_uninstall
actiondo_action( 'wp_wpb_sdk_after_uninstall', $slug ); -
wpb_sdk_optin_redirect_url
filterapply_filters( 'wpb_sdk_optin_redirect_url', $url, $slug, $optin, $redirect_override ); -
wpb_sdk_bootstrap_module
actiondo_action( 'wpb_sdk_bootstrap_module', $slug ); -
whaf_wpb56690683_loaded
actiondo_action( 'whaf_wpb56690683_loaded' ); -
apply_filters( "wpb_sdk_{$slug}_optin_view_path", $path, $module ); -
wpb_sdk_module_config
filterapply_filters( 'wpb_sdk_module_config', $module ); -
wpb_sdk_optin_admin_user_id
filterapply_filters( 'wpb_sdk_optin_admin_user_id', $admin_id, $slug ); -
apply_filters( "wpb_sdk_optin_logo_url_{$slug}", $logo_url, $module ); -
wpb_sdk_optin_verified
actiondo_action( 'wpb_sdk_optin_verified', $current_user, $module ); -
wpb_sdk_optin_view_path
filterapply_filters( 'wpb_sdk_optin_view_path', $path, $slug, $module ); -
wpb_sdk_plugin_main_file
filterapply_filters( 'wpb_sdk_plugin_main_file', '', $slug ); -
apply_filters( 'wpb_sdk_should_cleanup_on_uninstall', true, $slug ); -
apply_filters( 'wpb_sdk_site_used_centralized_sdk_32', false, $slug, $module ); -
apply_filters( 'wpb_sdk_uninstall_option_names', $options, $slug ); -
apply_filters( 'wpb_sdk_uninstall_user_meta_keys', array_values( array_unique( array_filter( $user_meta ) ) ), $slug ); -
do_action( "wsa_form_bottom_{$form['id']}", $form ); -
wsa_form_top_{$form['id']}
actiondo_action( "wsa_form_top_{$form['id']}", $form );
Generated from Insert Headers And Footers'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: