Cookies, Terms & Conditions Consent Log 2.1.0 has 5 actions and 30 filters, read directly from its source code on Nov 18, 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 Cookies, Terms & Conditions Consent Log fires an action
add_action( 'tccl_cookie_consent_saved', function( $insert_id, $row ) {
// Your code runs here.
}, 10, 2 );
// Change a value Cookies, Terms & Conditions Consent Log is about to use
add_filter( 'tccl_block_checkout_page_id', function( $page_id ) {
// Change $page_id here.
return $page_id;
}, 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
-
/** * Filter the page inspected when looking for the checkout blocks. */ apply_filters( 'tccl_block_checkout_page_id', $page_id ); -
/** * Filter the resolved terms block of the block checkout. */ apply_filters( 'tccl_block_checkout_terms_block', $block ); -
/** * Filters the largest signed payload the endpoint will look at, in bytes. */ apply_filters( 'tccl_consent_box_max_payload', 100000 ); -
/** * Filter the payload inspected when looking for ticked consent checkboxes. */ apply_filters( 'tccl_consent_detection_payload', $post, $context ); -
/** * Filters the document copies a record points to. */ apply_filters( 'tccl_consent_documents', tccl_snapshot_pointers( (array) $args['sources'] ), $args ); -
/** * Fires after a cookie consent record has been written. */ do_action( 'tccl_cookie_consent_saved', $insert_id, $row ); -
/** * Fires after expired cookie consent records have been deleted. */ do_action( 'tccl_cookie_consents_purged', $deleted ); -
/** * Filters how long an identical decision counts as the same one, in seconds. */ apply_filters( 'tccl_cookie_dedup_window', MINUTE_IN_SECONDS ); -
/** * Filters the banners the health check knows how to look for. */ apply_filters( 'tccl_cookie_known_banners', $banners ); -
/** * Filters the arguments a cookie consent record is about to be written with. */ apply_filters( 'tccl_cookie_save_consent_args', $args ); -
/** * Filters the cookie banners the plugin records decisions from. */ apply_filters( 'tccl_cookie_sources', $sources ); -
/** * Filter the keyword list used to identify a consent checkbox by name. */ apply_filters( 'tccl_login_register_consent_keywords', $keywords ); -
/** * Filter the list of `$_POST` keys to ignore when detecting consent. */ apply_filters( 'tccl_login_register_excluded_post_keys', $excluded ); -
/** * Filter the maximum number of consent records a single submission may * produce. */ apply_filters( 'tccl_max_consents_per_submission', 10, $context ); -
/** * Filters whether a change in the Moove banner asks every visitor again. */ apply_filters( 'tccl_moove_renew_consent', true ); -
/** * Fires after a new copy of a document is stored. */ do_action( 'tccl_snapshot_created', $id, $source ); -
/** * Filters whether blocks and shortcodes are rendered before copying a page. */ apply_filters( 'tccl_snapshot_render', true, $post ); -
/** * Filters the rendered HTML a page copy is taken from. */ apply_filters( 'tccl_snapshot_rendered_html', $html, $post ); -
/** * Filters the pages the plugin keeps sealed copies of. */ apply_filters( 'tccl_tracked_pages', $ids ); -
do_action( 'tccl_consent_anonymised', $updated ); -
apply_filters( 'tccl_admin_capability', 'manage_options' ); -
apply_filters( 'tccl_block_checkout_field_location', 'order' ); -
apply_filters( 'tccl_consent_rate_max', 10 ); -
apply_filters( 'tccl_consent_rate_window', MINUTE_IN_SECONDS ); -
do_action( 'tccl_consent_saved', $insert_id, $args ); -
apply_filters( 'tccl_cookie_rate_max', 20 ); -
apply_filters( 'tccl_cookie_rate_max_ip', 60 ); -
apply_filters( 'tccl_cookie_rate_window', MINUTE_IN_SECONDS ); -
apply_filters( 'tccl_csv_column_labels', $labels ); -
apply_filters( 'tccl_csv_columns', array( 'id', 'order_id', 'user_id', 'email', 'consent_type', 'consent_version', 'consent_text', 'consent_text_hash', 'consent_value', 'ip_address', 'user_agent', 'source_url', 'created_at', 'documents' ) ); -
apply_filters( 'tccl_record_order_link', $tccl_default_order_link, (int) $item->order_id, $item ); -
apply_filters( 'tccl_records_query_where', $where_sql, $filter ); -
apply_filters( 'tccl_save_consent_args', $args ); -
apply_filters( 'tccl_snapshot_lock_ttl', 2 * MINUTE_IN_SECONDS );
Generated from Cookies, Terms & Conditions Consent Log'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: