Lobbit Cookie Consent 1.10 has 6 actions and 15 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 Lobbit Cookie Consent fires an action
add_action( 'custcc_page_cache_purge', function( $cleared ) {
// Your code runs here.
}, 10, 1 );
// Change a value Lobbit Cookie Consent is about to use
add_filter( 'custcc_blocked_handles', 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
-
/** * Filters the script handles to keep blocked. */ apply_filters( 'custcc_blocked_handles', array() ); -
/** * Filters the services whose cookies are listed without being seen. */ apply_filters( 'custcc_active_services', array_values( array_unique( $services ) ) ); -
/** * Filters whether the banner is printed on the current page. */ apply_filters( 'custcc_banner_active', true ); -
/** * Filters the catalog of the services and their cookies. */ apply_filters( 'custcc_catalog', $services ); -
/** * Filters the catalog of the providers. */ apply_filters( 'custcc_catalog_providers', $providers ); -
/** * Filters the categories shown in the banner, for example to add one used only * by scripts written in the theme with the data-custcc-category attribute. */ apply_filters( 'custcc_categories_in_use', $in_use ); -
/** * Filters the visitor IP address used for the rate limit and the log. */ apply_filters( 'custcc_client_ip', $ip ); -
/** * Fires when the plugin clears the page cache, once per request, after one of * its options was saved. Hook here the purge of a cache the plugin does not * know, such as the cache of the hosting or of a CDN. It does not fire when * custcc_purge_page_cache returns false. */ do_action( 'custcc_page_cache_purge', $cleared ); -
/** * Filters the ID of a page of the plugin for the current request, for * multilingual systems that do not answer "wpml_object_id". */ apply_filters( 'custcc_page_id', $localized, $key, $page_id ); -
/** * Filters whether the plugin prints the title of a policy page in place of the * one of the theme. */ apply_filters( 'custcc_policy_own_title', $ours, $page_id ); -
/** * Filters the width of the frame around the generated policies. */ apply_filters( 'custcc_policy_width', $width ); -
/** * Filters whether the plugin clears the page cache when one of its options is * saved. Return false to clear it in another way. */ apply_filters( 'custcc_purge_page_cache', true ); -
/** * Filters how many events one address can send per minute. */ apply_filters( 'custcc_rate_limit', self::RATE_LIMIT ); -
/** * Filters the pages asked to the server during the scan. */ apply_filters( 'custcc_scan_urls', $urls ); -
/** * Filters a text of the banner before it is printed, for multilingual systems * that keep their own translation of the custom texts. WPML and Polylang do * not need it: they translate the option itself, through wpml-config.xml. */ apply_filters( 'custcc_text', $value, $key, $custom ); -
do_action( 'breeze_clear_all_cache' ); -
do_action( 'cache_enabler_clear_complete_cache' ); -
do_action( 'litespeed_purge_all' ); -
do_action( 'rt_nginx_helper_purge_all' ); -
do_action( 'wphb_clear_page_cache' ); -
apply_filters( 'wpml_object_id', $page_id, 'page', true );
Generated from Lobbit Cookie 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: