CAPTCHA 4WP 7.6.2 has 1 actions and 29 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 CAPTCHA 4WP fires an action
add_action( 'c4wp_admin_setting_form', function() {
// Your code runs here.
}, 10, 1 );
// Change a value CAPTCHA 4WP is about to use
add_filter( 'c4wp_enable_dev_mode', 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
-
c4wp_enable_dev_mode
filterapply_filters( 'c4wp_enable_dev_mode', false ); -
apply_filters( 'c4wp_captcha_callback_additional_js', '' ); -
c4wp_verify_captcha
filterapply_filters( 'c4wp_verify_captcha', $verify, $result, $response ); -
c4wp_google_verify_url
filterapply_filters( 'c4wp_google_verify_url', sprintf( $method::get_verify_url() ) ); -
c4wp_hcaptcha_script_api_src
filterapply_filters( 'c4wp_hcaptcha_script_api_src', sprintf( 'https://js.hcaptcha.com/1/api.js?onload=c4wp_onloadCallback&render=explicit' . $lang ), $lang ); -
c4wp_post_method_verify
filterapply_filters( 'c4wp_post_method_verify', false, $verify, Geo_Blocking::sanitize_incoming_ip( sanitize_text_field( wp_unslash( $_SERVER['REMOTE_ADDR'] ) ) ) ); -
apply_filters( 'c4wp_v2_checkbox_script_api_src', sprintf( 'https://www.%s/recaptcha/api.js?onload=c4wp_onloadCallback&render=explicit' . $lang, C4WP_Functions::c4wp_recaptcha_domain() ), $lang ); -
apply_filters( 'c4wp_v2_invisible_script_api_src', sprintf( 'https://www.%s/recaptcha/api.js?onload=c4wp_onloadCallback&render=explicit' . $lang, C4WP_Functions::c4wp_recaptcha_domain() ), $lang ); -
c4wp_v3_script_api_src
filterapply_filters( 'c4wp_v3_script_api_src', sprintf( 'https://www.%s/recaptcha/api.js?render=' . $site_key . $lang, C4WP_Functions::c4wp_recaptcha_domain() ), $site_key, $lang ); -
c4wp_verify_captcha_pre
filterapply_filters( 'c4wp_verify_captcha_pre', null, $response ); -
apply_filters( 'c4wp_add_to_enabled_forms_array', $enabled_forms ); -
c4wp_admin_setting_form
actiondo_action( 'c4wp_admin_setting_form' ); -
c4wp_available_methods
filterapply_filters( 'c4wp_available_methods', self::$methods ); -
c4wp_captcha_language_filter
filterapply_filters( 'c4wp_captcha_language_filter', $language ); -
c4wp_cloudflare_verify_url
filterapply_filters( 'c4wp_cloudflare_verify_url', self::$verify_url ); -
c4wp_error_message
filterapply_filters( 'c4wp_error_message', $message, $mgs ); -
c4wp_form_field_markup
filterapply_filters( 'c4wp_form_field_markup', self::captcha_form_field() ); -
c4wp_forms_area_tabs
filterapply_filters( 'c4wp_forms_area_tabs', $settings_tabs ); -
c4wp_get_option
filterapply_filters( 'c4wp_get_option', $value, $option, $default_value, $is_default ); -
c4wp_hcaptcha_verify_url
filterapply_filters( 'c4wp_hcaptcha_verify_url', self::$verify_url ); -
apply_filters( 'c4wp_is_rest_request_no_path_found', false ); -
c4wp_login_captcha_filter
filterapply_filters( 'c4wp_login_captcha_filter', $show_captcha, $ip ); -
c4wp_recaptcha_domain
filterapply_filters( 'c4wp_recaptcha_domain', $domain ); -
c4wp_settings_area_tabs
filterapply_filters( 'c4wp_settings_area_tabs', $settings_tabs ); -
apply_filters( 'c4wp_settings_field_sanitize_filter', $sanitized, $field, $value ); -
apply_filters( "c4wp_settings_field_sanitize_filter_{$field['type']}", $value, $field ); -
c4wp_settings_fields
filterapply_filters( 'c4wp_settings_fields', $fields ); -
c4wp_settings_fields_after
filterapply_filters( 'c4wp_settings_fields_after', $fields ); -
c4wp_settings_sections
filterapply_filters( 'c4wp_settings_sections', $sections ); -
apply_filters( 'c4wp_verify_cloudflare_captcha_pre', null, $response );
Generated from CAPTCHA 4WP'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: