FAZ Cookie Manager 1.40.0 has 30 actions and 109 filters, read directly from its source code on Nov 21, 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 FAZ Cookie Manager fires an action
add_action( 'faz_dsar_ip_layer_skipped', function() {
// Your code runs here.
}, 10, 1 );
// Change a value FAZ Cookie Manager is about to use
add_filter( 'faz_bot_render_cache_veto', 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.
Changes by version
1.39.0 → 1.40.0 · Nov 21, 2026 · 4 added, 0 removed
Added
- filter
faz_brand_logo_alt - filter
faz_ipinfo_lookups_per_hour - filter
faz_scanner_require_public_site_ip - filter
faz_dnsmpi_max_notifications_per_day
All hooks
-
/** * This filter is documented in frontend/class-frontend.php. */ apply_filters( 'faz_bot_render_cache_veto', true ); -
/** * Override the country-source detection. */ apply_filters( 'faz_has_country_signal_source', $has_source ); -
/** * Filter the bot detection result. */ apply_filters( 'faz_is_bot', true, $ua ); -
/** * Strict-fingerprint mode (issue #106). */ apply_filters( 'faz_strict_scope_fingerprint', false ); -
/** * Filters whether an origin is a trusted AMP cache for this site. */ apply_filters( 'faz_amp_consent_allowed_cache_origin', $allowed, $origin, $site_origin ); -
/** * Whether the external banner stylesheet loads without blocking the first * paint. */ apply_filters( 'faz_banner_css_non_blocking', true ); -
/** * Filter the banner REST categories payload. */ apply_filters( 'faz_banner_rest_categories', $out, $lang ); -
/** * Filter the banner REST shortcodes payload. */ apply_filters( 'faz_banner_rest_shortcodes', $codes, $banner ); -
/** * Filter the list of bot user agent patterns. */ apply_filters( 'faz_bot_patterns', $bot_patterns ); -
/** * Filter the alt text of the banner's brand logo. */ apply_filters( 'faz_brand_logo_alt', $alt, $url ); -
/** * Filters how long a consent-log origin token stays acceptable. */ apply_filters( 'faz_consent_token_max_age', self::TOKEN_MAX_AGE ); -
/** * Filter the data array passed to the template substitution. */ apply_filters( 'faz_cookie_policy_data', $data, $jurisdiction, $lang, $settings ); -
/** * Require agreement between detection sources before returning a country. When * this filter resolves to true AND ≥2 sources disagree, detect_country() * returns '' (the fail-open default — banner is shown to everyone). Off by * default to preserve the CF-first priority order. */ apply_filters( 'faz_country_detection_consensus', false, $votes ); -
/** * Filter the resolved language for a specific country. */ apply_filters( 'faz_country_to_language', $lang, $country ); -
/** * Filter the country→language map. */ apply_filters( 'faz_country_to_language_map', $map, $country ); -
/** * Filter the resolved locale for a specific country (single override). */ apply_filters( 'faz_country_to_locale', $locale, $country ); -
/** * Filter the country→locale map (full table override). */ apply_filters( 'faz_country_to_locale_map', $map, $country ); -
/** * Filter to disable client-side browser-language detection. */ apply_filters( 'faz_disable_browser_language_detection', false ); -
/** * Whether to keep a dated, non-identifying record of an erased request. */ apply_filters( 'faz_dsar_erasure_retain_record', true, $post_id, $email ); -
/** * Fires when the per-IP ceiling is skipped for lack of a per-visitor address. */ do_action( 'faz_dsar_ip_layer_skipped' ); -
/** * Difficulty of the DSAR proof of work, in leading hex zeros. */ apply_filters( 'faz_dsar_pow_difficulty', self::POW_DIFFICULTY ); -
/** * Switch on the self-contained proof-of-work gate for the DSAR form. */ apply_filters( 'faz_dsar_pow_enabled', false ); -
/** * Fires when a challenged submission arrives with no answer. */ do_action( 'faz_dsar_pow_unanswered', $context ); -
/** * Gate a DSAR submission with your own verification. */ apply_filters( 'faz_dsar_pre_submit', null, $context ); -
/** * Whether a missing honeypot field refuses the submission. */ apply_filters( 'faz_dsar_reject_missing_honeypot', true ); -
/** * Fires when a DSAR submission is refused. */ do_action( 'faz_dsar_rejected', $code, $context ); -
/** * Whether to send core's identity-confirmation email to the data subject. */ apply_filters( 'faz_dsar_send_core_confirmation', true, $post_id, $action ); -
/** * Whether a page that renders [faz_dsar_form] is kept out of full-page caches. */ apply_filters( 'faz_dsar_veto_page_cache', true ); -
/** * Filter the enforceable per-service list (broader than the visible one). */ apply_filters( 'faz_enforceable_services', $services, $valid_categories ); -
/** * Filter to inject an explicit country override. */ apply_filters( 'faz_geo_admin_override_country', '' ); -
/** * Override jurisdiction ruleset enforcement independently of the UI. */ apply_filters( 'faz_geo_ruleset_runtime', $enabled, $settings ); -
/** * Filter the rulesets catalog directory location. */ apply_filters( 'faz_geo_rulesets_dir', trailingslashit( __DIR__ . '/rulesets' ) ); -
/** * Filter the GeoLite2 edition the downloader fetches and the lookup reads. */ apply_filters( 'faz_geolite2_edition', $default ); -
/** * Filter whether this request is machine-readable and must never have its * content rewritten by the blocker. */ apply_filters( 'faz_is_machine_readable_request', false ); -
/** * Filters whether a country is considered within a target region. */ apply_filters( 'faz_is_target_region', false, $country_code, $regions ); -
/** * Filter: load a shortcode's frontend asset on every frontend page. */ apply_filters( 'faz_load_shortcode_assets_everywhere', false, (string) $asset ); -
/** * The one forwarded header a loopback reverse proxy is known to write. */ apply_filters( 'faz_loopback_proxy_header', '' ); -
/** * Fires when script meta keys are stripped due to missing unfiltered_html * capability. Hooked by WP-CLI commands to surface a warning. Side-effect-free * for normal users. */ do_action( 'faz_meta_script_keys_stripped' ); -
/** * Whether a markup pass that PCRE could not complete (backtrack or recursion * limit, JIT stack) is re-run over a linear walk of the document instead of * being skipped. */ apply_filters( 'faz_output_buffer_fail_closed', true ); -
/** * Filters how long a pageview origin token stays acceptable. */ apply_filters( 'faz_pageview_token_max_age', self::TOKEN_MAX_AGE ); -
/** * Filter the per-service consent list. */ apply_filters( 'faz_per_service_services', $services, $valid_categories ); -
/** * Fires after the PMP integration applies its necessary-only privacy state. */ do_action( 'faz_pmp_privacy_applied', get_current_user_id(), explode( ',', $desired_cookie ) ); -
/** * Allow third-party code to override the exemption decision. Useful for sites * that combine PMP with other membership systems or need custom rules (e.g. * exempt only active subscriptions, not expired ones). */ apply_filters( 'faz_pmp_user_exempted', $this->cached_exempted, $exempt_levels ); -
/** * The forwarded header a non-Cloudflare trusted proxy writes. */ apply_filters( 'faz_proxy_forwarded_header', 'HTTP_X_FORWARDED_FOR', $remote_addr ); -
/** * Filters the public admin-ajax actions trusted alternate domains may call. */ apply_filters( 'faz_public_ajax_actions', $actions ); -
/** * Whether the visitor's address is restored at the origin for Cloudflare. */ apply_filters( 'faz_remote_addr_rewritten_by_cloudflare', false ); -
/** * Whether the consent runtime is fetched with fetchpriority="high". */ apply_filters( 'faz_runtime_fetchpriority', true ); -
/** * Whether to announce `Vary: Accept-Language`. */ apply_filters( 'faz_send_vary_header', false ); -
/** * Whether the bundled third-party cookie datasets (Cookie_Database and the * Open Cookie Database) may authorise server-side DELETION, not merely * classification. */ apply_filters( 'faz_shred_uses_cookie_database', false ); -
/** * Filter how long an unused generated asset is kept, in days. */ apply_filters( 'faz_static_asset_retention_days', 365 ); -
/** * Filter the frontend consent store emitted to the page — PRESENTATION ONLY. */ apply_filters( 'faz_store_data', $store, $this ); -
/** * Whether to trust proxy headers (X-Forwarded-For, X-Real-IP, * CF-Connecting-IP). */ apply_filters( 'faz_trust_proxy_headers', false, $remote_addr ); -
/** * Origins on which this site's own pages are served. */ apply_filters( 'faz_trusted_origins', $list ); -
/** * Trusted reverse-proxy CIDR allowlist. */ apply_filters( 'faz_trusted_proxies', array(), $remote_addr ); -
/** * Extend (or replace) the shipped trusted-proxy ranges. */ apply_filters( 'faz_trusted_proxy_cidrs', faz_cloudflare_proxy_cidrs() ); -
/** * Whether a render that follows the visitor's consent state may be kept out of * shared page caches. */ apply_filters( 'faz_veto_cache_for_visitor_state', true ); -
/** * Filter the resolved ISO 3166-2 visitor region. */ apply_filters( 'faz_visitor_region', $region ); -
apply_filters( 'faz_is_amp_request', false ); -
apply_filters( 'faz_trust_cf_ipcountry_header', false ); -
do_action( 'litespeed_control_set_nocache', 'FAZ Cookie Manager admin page' ); -
apply_filters( 'faz_country_dependent_banner_output', false, $settings ); -
do_action( 'faz_purge_page_cache' ); -
do_action( 'faz_after_update_cookie_category' ); -
apply_filters( 'faz_scanner_sslverify', ! $is_validated_loopback, $current_url ); -
do_action( 'faz_after_update_banner', $clear ); -
do_action( 'faz_after_update_cookie' ); -
apply_filters( 'faz_trust_geoip_country_code', false ); -
apply_filters( 'faz_use_country_language_fallback', false ); -
do_action( 'faz_after_create_cookie' ); -
apply_filters( 'faz_auto_exclude_cache_plugins', true ); -
apply_filters( 'faz_banner_template_cache_key', 'faz_banner_template' ); -
do_action( 'faz_clear_cache' ); -
apply_filters( 'faz_cookie_domain', '' ); -
apply_filters( 'https_local_ssl_verify', false ); -
do_action( 'cache_enabler_clear_complete_cache' ); -
do_action( 'cachify_flush_cache' ); -
do_action( 'ce_clear_cache' ); -
do_action( 'faz_after_delete_cookie' ); -
do_action( 'faz_after_update_settings', $settings ); -
apply_filters( 'faz_current_language', '' ); -
apply_filters( 'faz_external_static_assets', true ); -
apply_filters( 'faz_pageviews_retention_months', $months ); -
apply_filters( 'faz_retention_batch_size', 1000 ); -
apply_filters( 'faz_retention_max_rows', 200000 ); -
do_action( 'jetpack_boost_clear_page_cache_all' ); -
do_action( 'rt_nginx_helper_purge_all' ); -
do_action( 'swcfpc_purge_cache' ); -
do_action( 'wphb_clear_page_cache' ); -
do_action( 'breeze_clear_all_cache' ); -
apply_filters( 'cli__get_assets_uploads_dir', $dir_info ); -
apply_filters( "faz_{$code}_shortcode_tag", $code ); -
do_action( 'faz_after_activate', FAZ_VERSION ); -
do_action( 'faz_after_delete_cookie_category' ); -
do_action( 'faz_after_first_time_install' ); -
apply_filters( 'faz_allowed_html', $html ); -
apply_filters( 'faz_always_allowed_gateway_patterns', $patterns ); -
apply_filters( 'faz_amp_component_purpose_map', $map, $purpose_slugs ); -
apply_filters( 'faz_blocking_rules', $map ); -
apply_filters( 'faz_blocking_rules_client', $this->providers ); -
apply_filters( 'faz_cache_geo_bootstrap', $stored_opt_in || $legacy_opt_in ); -
apply_filters( 'faz_cache_vary_by_law', false ); -
apply_filters( 'faz_configs_rate_limit_seconds', 5 ); -
apply_filters( 'faz_consent_log_erasure_retain', false, $consent_id, $email ); -
apply_filters( 'faz_data_uri_decode_max_bytes', 65536 ); -
apply_filters( 'faz_dnsmpi_max_notifications_per_day', self::MAX_NOTIFICATIONS_PER_DAY ); -
apply_filters( 'faz_dsar_retention_months', $default ); -
apply_filters( 'faz_gcm_datalayer_name', 'dataLayer' ); -
apply_filters( 'faz_geo_bootstrap_timeout_ms', 1500 ); -
apply_filters( 'faz_ipinfo_lookups_per_hour', self::LOOKUPS_PER_HOUR ); -
apply_filters( "faz_is_module_active_{$module_id}", true ); -
apply_filters( 'faz_is_rest_api_request', $is_rest_api_request ); -
apply_filters( 'faz_language_map', $map ); -
apply_filters( 'faz_pageview_title', $page_title ); -
apply_filters( 'faz_pageview_url', $page_url ); -
apply_filters( 'faz_payment_gateway_whitelist', array( 'paypal.com/sdk/js', 'paypalobjects.com/api/checkout.js', 'ppcp-gateway', 'ppcp-webhooks', 'PayPalCommerceGateway', 'mollie-payments', 'plugins/mollie-payments-for-woocommerce/', 'squareup.com', 'square-credit-card', 'braintreegateway.com', 'braintree-web/', 'wc-braintree', 'x.klarnacdn.net', 'klarna-payments', 'klarna-checkout', 'amazonpay', 'amazon-payments-advanced', ) ); -
do_action_deprecated( 'faz_pmp_consent_auto_granted', array( get_current_user_id(), explode( ',', $desired_cookie ) ), '1.27.0', 'faz_pmp_privacy_applied' ); -
do_action( 'faz_reinstall_tables' ); -
apply_filters( 'faz_respect_smash_balloon_gdpr', true ); -
apply_filters( 'faz_scanner_require_public_site_ip', function_exists( 'is_multisite' ) && is_multisite(), $url_host ); -
do_action( 'faz_server_cookie_blocked', $entry['name'], isset( $entry['category'] ) ? $entry['category'] : '' ); -
apply_filters( 'faz_visitor_country', $country ); -
apply_filters( 'faz_whitelisted_scripts', $whitelist ); -
apply_filters( 'faz_wp_locale_from_language', $locale, $lang ); -
apply_filters( 'https_ssl_verify', true ); -
do_action( 'litespeed_purge_all', 'FAZ Cookie Manager upgrade' ); -
apply_filters( 'nonce_life', DAY_IN_SECONDS ); -
apply_filters( 'request_filesystem_credentials_context', false ); -
apply_filters( 'wpml_active_languages', null ); -
apply_filters( 'wpml_current_language', null ); -
apply_filters( 'wpml_default_language', $null ); -
apply_filters( 'wpml_element_trid', false, $post_id, $type ); -
apply_filters( 'wpml_element_type', get_post_type( $post_id ) ); -
apply_filters( 'wpml_get_element_translations', array(), $trid, $type ); -
apply_filters( 'wpml_object_id', $term_id, 'category', true, $language ); -
apply_filters( 'wpml_setting', null, 'language_negotiation_type' ); -
apply_filters( 'wpml_translate_single_string', $string, "admin_texts_{$context}", "[{$context}]" . $key, $language );
Generated from FAZ Cookie Manager'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: