WPLP Cookie Consent 4.5.0 has 36 actions and 53 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.
// Run your own code when WPLP Cookie Consent fires an action
add_action( 'gdpr_cookie_font', function() {
// Your code runs here.
}, 10, 1 );
// Change a value WPLP Cookie Consent is about to use
add_filter( 'gdprcookieconsent_block_rules', function( $rules ) {
// Change $rules here.
return $rules;
}, 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 blocker rules. */ apply_filters( 'gdprcookieconsent_block_rules', $rules ); -
/** * Domain for the consent cookie, e.g. '.example.com' to share consent across * subdomains. Empty for a host-only cookie. */ apply_filters( 'gdprcookieconsent_consent_cookie_domain', '' ); -
/** * Filters the consent core configuration. */ apply_filters( 'gdprcookieconsent_consent_core_config', $config ); -
/** * Maximum consent log entries per IP per 10 minutes. */ apply_filters( 'gdprcookieconsent_consent_log_rate_limit', 120 ); -
/** * Filters the library of cookie name families. */ apply_filters( 'gdprcookieconsent_cookie_families', $out ); -
/** * Filters the cookie inventory the cleaner uses. */ apply_filters( 'gdprcookieconsent_cookie_inventory', $inventory ); -
/** * Category for a match whose own category is unknown. */ apply_filters( 'gdprcookieconsent_default_block_category', 'unclassified' ); -
/** * Keep writing the pre-4.5 consent cookies from the new record, for cached * pages still running the old script and for rollbacks. */ apply_filters( 'gdprcookieconsent_mirror_legacy_cookies', true ); -
/** * Categories a US-law opt-out of sale/sharing (or GPC) denies. */ apply_filters( 'gdprcookieconsent_us_optout_categories', array( 'marketing' ) ); -
apply_filters( 'gdpr_cookie_consent_trusted_proxies', array() ); -
gdpr_cookie_font
actiondo_action( 'gdpr_cookie_font' ); -
apply_filters( 'gdpr_settings_cookie_scan_values', '' ); -
format_to_edit
filterapply_filters( 'format_to_edit', stripslashes( $the_options['about_message'] ) ); -
do_action( 'gdpr_cookie_layout_skin_label' ); -
do_action( 'gdpr_cookie_layout_skin_markup' ); -
apply_filters( 'gdpr_module_after_save_settings', $the_options ); -
gdpr_module_save_settings
actiondo_action( 'gdpr_module_save_settings' ); -
wpl_datarequest_data
filterapply_filters( 'wpl_datarequest_data', $data ); -
apply_filters( "wpl_dnsmpd_column_{$column_name}", $value, $item['ID'] ); -
wpl_report_customer_columns
filterapply_filters( 'wpl_report_customer_columns', $columns ); -
add_activation_key_content
actiondo_action( 'add_activation_key_content' ); -
add_consent_log_content
actiondo_action( 'add_consent_log_content' ); -
add_data_request_content
actiondo_action( 'add_data_request_content' ); -
appwplp_secret_key_generated
actiondo_action( 'appwplp_secret_key_generated', $existing_key ); -
gcc_font_options
filterapply_filters( 'gcc_font_options', $cookie_font ); -
gcc_layout_skin_options
filterapply_filters( 'gcc_layout_skin_options', $layout_skin ); -
do_action( 'gdpr_cookie_consent_app_plan_connected', $data['account']['plan'] ?? '' ); -
do_action( 'gdpr_refresh_consent_log_stats' ); -
apply_filters( 'gdpr_settings_cookie_list_values', '' ); -
do_action( 'gdpr_settings_script_blocker_tab' ); -
apply_filters( 'gdpr_settings_script_blocker_values', '' ); -
apply_filters( 'gdprcookieconsent_cookie_usage_for_options', $options ); -
gdprcookieconsent_cookies
filterapply_filters( 'gdprcookieconsent_cookies', $custom->get_cookies( 0 ) ); -
gdpr_consent_log_stats_ttl
filterapply_filters( 'gdpr_consent_log_stats_ttl', HOUR_IN_SECONDS ); -
do_action( 'gdpr_consent_log_table_dashboard' ); -
do_action( 'gdpr_consent_settings_consent_forward' ); -
do_action( 'gdpr_consent_settings_data_reqs' ); -
do_action( 'gdpr_consent_settings_pro_bottom' ); -
do_action( 'gdpr_consent_settings_pro_top' ); -
do_action( 'gdpr_consent_settings_safe_enable' ); -
gdpr_cookie_scanned_history
actiondo_action( 'gdpr_cookie_scanned_history' ); -
gdpr_cookie_template
actiondo_action( 'gdpr_cookie_template' ); -
gdpr_country_codes
filterapply_filters( 'gdpr_country_codes', $country_codes ); -
apply_filters( 'gdpr_csv_export_policies_args', array( 'post_status' => array( 'publish', 'draft' ), 'post_type' => array( GDPR_POLICY_DATA_POST_TYPE ), 'orderby' => 'ID', 'numberposts' => -1, 'order' => 'ASC', ) ); -
gdpr_custom_css
actiondo_action( 'gdpr_custom_css' ); -
apply_filters( 'gdpr_get_last_scanned_details', $last_scanned_details ); -
apply_filters( 'gdpr_get_legal_page_generated_count', $post_count ); -
gdpr_hide_pages
actiondo_action( 'gdpr_hide_pages' ); -
do_action( 'gdpr_module_before_other_general' ); -
gdpr_module_other_general
actiondo_action( 'gdpr_module_other_general' ); -
gdpr_module_settings_button
actiondo_action( 'gdpr_module_settings_button' ); -
do_action( 'gdpr_module_settings_cookie_usage_for' ); -
do_action( 'gdpr_module_settings_cookielist' ); -
gdpr_module_settings_design
actiondo_action( 'gdpr_module_settings_design' ); -
gdpr_module_settings_form
actiondo_action( 'gdpr_module_settings_form' ); -
gdpr_module_settings_general
actiondo_action( 'gdpr_module_settings_general' ); -
do_action( 'gdpr_module_settings_script_blocker' ); -
gdpr_module_settings_tabhead
filterapply_filters( 'gdpr_module_settings_tabhead', $out_arr ); -
do_action( 'gdpr_module_show_again_general' ); -
gdpr_scan_history_table
actiondo_action( 'gdpr_scan_history_table' ); -
gdpr_settings_design_tab
actiondo_action( 'gdpr_settings_design_tab' ); -
gdpr_settings_general_tab
actiondo_action( 'gdpr_settings_general_tab' ); -
apply_filters( 'gdprcookieconsent_auto_mode_disable_page_cache', true ); -
apply_filters( 'gdprcookieconsent_background_border_styles', $options ); -
apply_filters( 'gdprcookieconsent_buttons_sub_tabs', $buttons_sub_tab ); -
apply_filters( 'gdprcookieconsent_ccpa_countrylist', array( 'US', ) ); -
apply_filters( 'gdprcookieconsent_cookie_design_options', $options ); -
apply_filters( 'gdprcookieconsent_cookie_expiry_options', $options ); -
apply_filters( 'gdprcookieconsent_cookie_sub_tabs', $cookie_sub_tab ); -
apply_filters( 'gdprcookieconsent_default_settings', $settings ); -
apply_filters( 'gdprcookieconsent_design_sub_tabs', $design_sub_tab ); -
apply_filters( 'gdprcookieconsent_eu_countrylist', array( 'AT', 'BE', 'BG', 'HR', 'CY', 'CZ', 'DK', 'EE', 'FI', 'FR', 'DE', 'GR', 'HU', 'IE', 'IT', 'LV', 'LT', 'LU', 'MT', 'NL', 'PL', 'PT', 'RO', 'SK', 'SI', 'ES', 'SE', 'GB', ) ); -
gdprcookieconsent_fonts
filterapply_filters( 'gdprcookieconsent_fonts', $fonts ); -
apply_filters( 'gdprcookieconsent_general_sub_tabs', $general_sub_tab ); -
apply_filters( 'gdprcookieconsent_json_settings', $slim_settings ); -
gdprcookieconsent_law_debug
filterapply_filters( 'gdprcookieconsent_law_debug', $enabled ); -
apply_filters( 'gdprcookieconsent_law_region_map', array( 'uk_gdpr' => array( 'GB' ), 'us_state_laws' => array( 'US' ), 'lgpd' => array( 'BR' ), 'pipeda' => array( 'CA' ), 'au_app' => array( 'AU' ), 'sa_pdpl' => array( 'SA' ), 'gdpr' => self::get_eu_countries(), ) ); -
apply_filters( 'gdprcookieconsent_readmore_pages', $readmore_pages ); -
apply_filters( 'gdprcookieconsent_script_blocker_sub_tabs', $script_blocker_sub_tab ); -
apply_filters( 'gdprcookieconsent_us_state_law_groups', array( 1 => array( 'CA', 'CO', 'CT', 'MD', 'MN', 'MT', 'NE', 'NH', 'NJ', 'OR', 'TX', 'DE' ), 2 => array( 'VA', 'IN', 'KY', 'TN', 'RI' ), 3 => array( 'UT', 'IA', 'FL' ), ) ); -
gdprpolicies_post_import
actiondo_action( 'gdprpolicies_post_import', $post_id ); -
gdprpolicies_pre_import
actiondo_action( 'gdprpolicies_pre_import', $gdpr_policies_data ); -
apply_filters( 'modify_import_gdprpoliciesdata', $gdpr_policies_data ); -
apply_filters( 'wc_am_client_uninstall_disable', true ); -
wpl_regex_patterns
filterapply_filters( 'wpl_regex_patterns', array( '_regexParts' => array( '-lookbehindImg' => '(?<!src=")', '-lookbehindLink' => '(?<!href=")', '-lookbehindLinkImg' => '(?<!href=")(?<!src=")', '-lookbehindShortcode' => '(?<!])', '-lookbehindAfterBody' => '(?<=\<body\>)', '-lookaheadBodyEnd' => '(?=.*\</body\>)', '-lookaheadHeadEnd' => '(?=.*\</head\>)', 'randomChars' => '[^\s\["\']+', 'srcSchemeWww' => '(?:https?://|//)?(?:[www\.]{4})?'... ); -
wpl_script_patterns
filterapply_filters( 'wpl_script_patterns', array( 'googleanalytics' => array( 'label' => __( 'GA4', 'gdpr-cookie-consent' ), 'src' => 'google-analytics.com', 'js' => array( 'googletagmanager.com/gtag/js?id=G-', 'googletagmanager.com/gtag/js?id=UA-', 'google-analytics.com/analytics.js', 'google-analytics.com/ga.js', ), 'js_needle' => array( 'google-analytics.com/analytics.js', 'google-analytics.com/ga.js', 'stats.g.doubleclick.net/dc.js'... ); -
wplcl_csv_export_args
filterapply_filters( 'wplcl_csv_export_args', array( 'post_status' => array('publish'), 'post_type' => array(GDPR_Cookie_Consent), 'orderby' => 'ID', 'numberposts' => -1, 'order' => 'ASC', ) ); -
wpml_current_language
filterapply_filters( 'wpml_current_language', null ); -
wpml_default_language
filterapply_filters( 'wpml_default_language', null );
Generated from WPLP Cookie Consent'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: