AriConsent 0.5.0 has 9 actions and 14 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 AriConsent fires an action
add_action( 'ariconsent_caches_purged', function( $cleared ) {
// Your code runs here.
}, 10, 1 );
// Change a value AriConsent is about to use
add_filter( 'ariconsent_builtin_services', function( $services ) {
// Change $services here.
return $services;
}, 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 built-in services. AriConsent Pro adds more here. */ apply_filters( 'ariconsent_builtin_services', $services ); -
/** * Fires after AriConsent cleared page caches, so hosts and other cache layers * can clear theirs. */ do_action( 'ariconsent_caches_purged', $cleared ); -
/** * Filters the capability needed to manage AriConsent. */ apply_filters( 'ariconsent_capability', 'manage_options' ); -
/** * Filters the consent categories. */ apply_filters( 'ariconsent_categories', $categories ); -
/** * Fires after a consent decision is logged. */ do_action( 'ariconsent_consent_logged', $row_id, $id, $action, $categories ); -
/** * Filters how categories map to Google consent types. */ apply_filters( 'ariconsent_gcm_map', array( 'preferences' => array( 'personalization_storage' ), 'statistics' => array( 'analytics_storage' ), 'marketing' => array( 'ad_storage', 'ad_user_data', 'ad_personalization' ), ) ); -
/** * Filters the health checks. */ apply_filters( 'ariconsent_health_checks', $checks ); -
/** * Filters the plugin => service map. */ apply_filters( 'ariconsent_known_plugins', $out ); -
/** * Fires after AriConsent has loaded. Extensions (such as AriConsent Pro) hook * in here. */ do_action( 'ariconsent_loaded' ); -
/** * Filters how many consent records one IP address may create per 10 minutes. */ apply_filters( 'ariconsent_log_rate_limit', self::RATE_LIMIT ); -
/** * Filters whether AriConsent clears page caches when its settings change. */ apply_filters( 'ariconsent_purge_caches', true ); -
/** * Filters whether AriConsent runs on this request. */ apply_filters( 'ariconsent_run_on_request', true ); -
/** * Filters the pages a scan loads. */ apply_filters( 'ariconsent_scan_urls', array_values( array_unique( $urls ) ) ); -
/** * Filters an owner-entered string before visitors see it, for other * translation plugins. */ apply_filters( 'ariconsent_translate_string', $value, $name ); -
do_action( 'breeze_clear_all_cache' ); -
do_action( 'cache_enabler_clear_complete_cache' ); -
apply_filters( 'https_local_ssl_verify', false ); -
do_action( 'litespeed_purge_all' ); -
do_action( 'rt_nginx_helper_purge_all' ); -
do_action( 'wphb_clear_page_cache' ); -
apply_filters( 'wpml_object_id', $page, 'page', true ); -
do_action( 'wpml_register_single_string', self::CONTEXT, $name, $value ); -
apply_filters( 'wpml_translate_single_string', $value, self::CONTEXT, $name );
Generated from AriConsent'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: