OW Consent 2.0.8 has 15 actions and 21 filters, read directly from its source code on Nov 19, 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 OW Consent fires an action
add_action( 'owco_catalog_updated', function() {
// Your code runs here.
}, 10, 1 );
// Change a value OW Consent is about to use
add_filter( 'owco_geo_mmdb_path', function( $candidate ) {
// Change $candidate here.
return $candidate;
}, 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
-
/** * Fires after `wp_owco_scripts` has been written, so caches of it can be * dropped. */ do_action( 'owco_catalog_updated' ); -
/** * Filter the path of the local MaxMind country database. */ apply_filters( 'owco_geo_mmdb_path', $candidate ); -
/** * Fires after the ledger head anchor moves. Mirror it outside the database * (file, syslog, external endpoint) to make a wholesale replay detectable. */ do_action( 'owco_ledger_anchor', $new ); -
/** * This filter is documented in includes/class-owco-install.php */ apply_filters( 'owco_scripts_catalog', $rows ); -
/** * Filter whether a public write with neither an Origin/Referer nor a nonce is * accepted. Default false. Opt in only for server-to-server integrations that * genuinely cannot send either, and that you rate-limit yourself. */ apply_filters( 'owco_allow_headerless_write', false, $route ); -
/** * Filter the hosts accepted by the same-origin check on the public write * endpoints (reverse proxies, alternate domains, headless front-ends). */ apply_filters( 'owco_allowed_request_hosts', $hosts ); -
/** * Filter the banner copy. */ apply_filters( 'owco_banner_texts', $texts ); -
/** * Filter the list of hosts the blocker must never touch. */ apply_filters( 'owco_blocker_allowlist', $lines ); -
/** * Filter the static bootstrap configuration printed in <head>. */ apply_filters( 'owco_bootstrap_config', $config ); -
/** * Fires when PHP could not emit the consent cookie because output had already * started. The consent itself is still applied for the rest of the request and * still recorded in the ledger; only the Set-Cookie header is missing, and the * caller is handed the same fact as `cookie_set`. */ do_action( 'owco_consent_cookie_not_sent', $cookie, (string) $event ); -
/** * Filter the data-subject request types the plugin knows. */ apply_filters( 'owco_dsar_types', $labels ); -
/** * Fires after a GPC signal has been recorded as an opt-out. */ do_action( 'owco_gpc_honored', $cats ); -
/** * Fires when the named lock guarding a ledger append could not be obtained * (GET_LOCK timed out, or the storage layer does not provide it). */ do_action( 'owco_ledger_lock_failed', (string) $event, (string) $row['visitor_token'] ); -
/** * Fires after the ledger retention job pruned rows. */ do_action( 'owco_ledger_pruned', $deleted, $days ); -
/** * Fires when a consent could not be written to the ledger. */ do_action( 'owco_ledger_write_failed', $error, $event, $row['visitor_token'] ); -
/** * Filter the finished document, after substitution and after the hero/body * wrapper. */ apply_filters( 'owco_policy_html', $html, $type, $vars ); -
/** * Filter a document body before variable substitution. `{{placeholders}}` are * still in place, so a replacement body can reuse the same variable names. */ apply_filters( 'owco_policy_template', $body, $type, $profile ); -
/** * Filter the variable map used to substitute `{{key}}` placeholders. */ apply_filters( 'owco_policy_vars', $vars, $type, $profile ); -
/** * Filter the list of URLs the scanner crawls. */ apply_filters( 'owco_scanner_urls', $urls ); -
/** * Fires when the TCF surface refuses to load. */ do_action( 'owco_tcf_inactive', 'missing_cmp_id' ); -
/** * Filter the category → TCF purpose mapping. */ apply_filters( 'owco_tcf_purpose_map', $map ); -
/** * Filter the static TCF stub configuration. */ apply_filters( 'owco_tcf_stub_config', $config ); -
/** * Filter the rate-limit budget of a bucket. Return 0 to disable the limit. */ apply_filters( 'owco_throttle_max', $max, $bucket, $window ); -
do_action( 'owco_dsar_fulfilled', $id, 'export', $payload['export'] ); -
do_action( 'owco_dsar_mail_failed', (int) $row['id'], implode( ',', $recipients ), 'controller_notice' ); -
do_action( 'litespeed_control_set_nocache', 'OW Consent: per-visitor response' ); -
do_action( 'owco_consent_updated', $categories, $event, $source ); -
do_action( 'owco_dsar_closed', $id, $status, $notes ); -
apply_filters( 'owco_dsar_export_bundle', $bundle, $email, $row ? (int) $row['id'] : 0 ); -
apply_filters( 'owco_dsar_form_notice', $html, $context ); -
apply_filters( 'owco_dsar_show_fulfilment_panel', true ); -
do_action( 'owco_dsar_submitted', $type, $email, $message ); -
do_action( 'owco_dsar_verified', $id, $row ); -
apply_filters( 'owco_settings', self::$raw_settings ); -
apply_filters( 'wp_privacy_personal_data_erasers', array() ); -
apply_filters( 'wp_privacy_personal_data_exporters', array() );
Generated from OW Consent'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: