CookieAdmin icon
Analytics & Tracking

CookieAdmin hooks reference

  • By Softaculous
  • v1.2.6
  • Updated

CookieAdmin 1.2.6 has 3 actions and 15 filters, read directly from its source code on Nov 17, 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.

functions.phpyour child theme
// Run your own code when CookieAdmin fires an action
add_action( 'cookieadmin_before_scan_results', function() {
	// Your code runs here.
}, 10, 1 );

// Change a value CookieAdmin is about to use
add_filter( 'cookieadmin_geo_law_options', 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

  • includes/admin/consent.php line 39 · used in 2 places
    apply_filters( 'cookieadmin_geo_law_options', [ 'cookieadmin_gdpr' => __('GDPR', 'cookieadmin'), 'cookieadmin_us' => __('US State Laws', 'cookieadmin'), ] );
  • includes/admin.php line 373 · used in 2 places
    apply_filters( 'softaculous_plugin_update_notice', [] );
  • includes/enduser.php line 487
    apply_filters( 'cookieadmin_after_banner', $templates );
  • includes/enduser.php line 70
    apply_filters( 'cookieadmin_before_localize', $policy[$view] );
  • includes/admin/scan.php line 85
    do_action( 'cookieadmin_before_scan_results' );
  • includes/admin/dashboard.php line 137
    do_action( 'cookieadmin_dashboard_main_widgets' );
  • includes/admin/dashboard.php line 148
    do_action( 'cookieadmin_dashboard_sidebar_widgets' );
  • includes/admin/dashboard.php line 54
    apply_filters( 'cookieadmin_dashboard_stats', $stats );
  • includes/functions.php line 278
    apply_filters( 'cookieadmin_default_strings', $strings );
  • includes/functions.php line 252
    apply_filters( 'cookieadmin_dpdp_contact', '' );
  • includes/functions.php line 251
    apply_filters( 'cookieadmin_override_gpc_html', '' );
  • includes/functions.php line 246
    apply_filters( 'cookieadmin_powered_by_html', $cookieadmin_powered_by_html );
  • includes/functions.php line 230
    apply_filters( 'cookieadmin_pro_policies', [] );
  • includes/admin/scan.php line 246
    apply_filters( 'cookieadmin_pro_scan_cookies', $urls );
  • includes/functions.php line 248
    apply_filters( 'cookieadmin_reconsent_icon_url', '', $policy );
  • includes/admin/consent.php line 37
    apply_filters( 'cookieadmin_reconsent_icons', '', $policy[$view] );

Generated from CookieAdmin's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.

Can't find the right hook?

We can build the customisation for you. Describe what you need: