Complianz 1.4.1 has 20 actions and 40 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 Complianz fires an action
add_action( 'cmplz_admin_menu', function() {
// Your code runs here.
}, 10, 1 );
// Change a value Complianz is about to use
add_filter( 'cmplz_wizard_lock_time', 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 wizard lock duration in seconds. */ apply_filters( 'cmplz_wizard_lock_time', 2 * MINUTE_IN_SECONDS ); -
/** * Filters a translatable option value via WPML string translation. */ apply_filters( 'wpml_translate_single_string', $value, 'complianz', $fieldname ); -
/** * Filters the document element list for a given region and document type. */ apply_filters( 'cmplz_document_elements', $this->pages[ $region ][ $type ]['document_elements'], $region, $type, $this->fields() ); -
/** * Filters the complete wizard field list after all add-ons have loaded. */ apply_filters( 'cmplz_fields', $this->fields ); -
/** * Filters the wizard fields before full initialisation. */ apply_filters( 'cmplz_fields_load_types', $this->fields ); -
/** * Filters the allowed HTML tags and attributes for plugin output sanitisation. */ apply_filters( 'cmplz_tc_allowed_html', $allowed_tags ); -
/** * Filters the wizard step and section configuration. */ apply_filters( 'cmplz_tc_steps', array( 'terms-conditions' => array( 1 => array( 'id' => 'company', 'title' => __( 'General', 'complianz-terms-conditions' ), 'intro' => '<h1 class="h4">' . __( 'Terms & Conditions', 'complianz-terms-conditions' ) . '</h1><p>' . sprintf( __( 'We have tried to make our Wizard as simple and fast as possible. Although these questions are all necessary, if there\'s any way you think we can improve t... ); -
/** * Filters the resolved path to a plugin template file. */ apply_filters( 'cmplz_tc_template_file', trailingslashit( cmplz_tc_path ) . 'templates/' . $filename, $filename ); -
/** * Fires after version-specific upgrade routines have been applied. */ do_action( 'cmplz_tc_upgrade', $prev_version ); -
/** * Filters the client IP used for withdrawal rate limiting. */ apply_filters( 'cmplz_tc_withdrawal_client_ip', $ip ); -
/** * This filters are documented in send_merchant_notification(). */ apply_filters( 'cmplz_tc_withdrawal_consumer_subject', $subject, $fields ); -
/** * Filters the maximum accepted length per withdrawal field. */ apply_filters( 'cmplz_tc_withdrawal_field_max_lengths', $defaults ); -
/** * Filters the merchant notification body. */ apply_filters( 'cmplz_tc_withdrawal_merchant_body', $body, $fields, $submitted_at, $source_url ); -
/** * Filters the merchant notification headers. */ apply_filters( 'cmplz_tc_withdrawal_merchant_headers', $headers, $consumer ); -
/** * Filters the merchant notification recipient. */ apply_filters( 'cmplz_tc_withdrawal_merchant_recipient', $recipient, $fields ); -
/** * Filters the merchant notification subject. */ apply_filters( 'cmplz_tc_withdrawal_merchant_subject', $subject, $fields ); -
/** * Opt-in spam gate (off by default): return true to drop the submission * silently. */ apply_filters( 'cmplz_tc_withdrawal_spam_check', false, $input ); -
/** * Fires when a withdrawal submission passes validation and anti-abuse. */ do_action( 'cmplz_tc_withdrawal_validated', $data ); -
/** * Fires during admin_init for the Terms & Conditions wizard. */ do_action( 'cmplz_wizard_terms-conditions' ); -
do_action( 'complianz_tc_after_field', $args ); -
do_action( 'complianz_tc_after_label', $args ); -
do_action( 'complianz_tc_before_label', $args ); -
do_action( 'complianz_tc_label_html', $args ); -
do_action( 'cmplz_tc_create_page', $page_id ); -
apply_filters( 'cmplz_tc_default_value', $args['default'], $fieldname ); -
apply_filters( "cmplz_tc_fieldvalue_{$fieldname}", $value, $fieldname ); -
do_action( 'cmplz_after_saved_all_fields', $posted_fields ); -
apply_filters( 'cmplz_document_comment', "\n" . '<!-- This legal document was generated by Complianz Terms & Conditions https://wordpress.org/plugins/complianz-terms-conditions -->' . "\n" ); -
apply_filters( 'cmplz_fieldvalue', $fieldvalue, $fieldname ); -
do_action( 'cmplz_register_translation', $key . '_' . $fieldname . '_' . $value_key, $field_value ); -
do_action( "cmplz_tc_{$callback}", $args ); -
apply_filters( 'cmplz_tc_document_email', $value ); -
apply_filters( 'cmplz_tc_document_html', $html ); -
apply_filters( 'cmplz_tc_index_char', '.' ); -
do_action( "cmplz_tc_notice_{$args['fieldname']}", $args ); -
do_action( 'cmplz_tc_register_translation', $fieldname, $fieldvalue ); -
apply_filters( 'cmplz_tc_withdrawal_consumer_body', $body, $fields, $submitted_at ); -
apply_filters( 'cmplz_tc_withdrawal_consumer_headers', $headers, $recipient ); -
apply_filters( 'cmplz_tc_withdrawal_email_global_max', 50 ); -
apply_filters( 'cmplz_tc_withdrawal_email_global_window', HOUR_IN_SECONDS ); -
apply_filters( 'cmplz_tc_withdrawal_email_per_recipient_max', 3 ); -
apply_filters( 'cmplz_tc_withdrawal_email_per_recipient_window', HOUR_IN_SECONDS ); -
apply_filters( 'cmplz_tc_withdrawal_email_rate_limit_max', 10 ); -
apply_filters( 'cmplz_tc_withdrawal_email_rate_limit_window', 10 * MINUTE_IN_SECONDS ); -
apply_filters( 'cmplz_tc_withdrawal_min_submit_seconds', 3 ); -
apply_filters( 'cmplz_tc_withdrawal_nonce_endpoint_max', 30 ); -
apply_filters( 'cmplz_tc_withdrawal_nonce_endpoint_window', MINUTE_IN_SECONDS ); -
apply_filters( 'cmplz_tc_withdrawal_rate_limit_max', 15 ); -
apply_filters( 'cmplz_tc_withdrawal_rate_limit_window', 5 * MINUTE_IN_SECONDS ); -
apply_filters( 'cmplz_tc_withdrawal_state_ttl', 5 * MINUTE_IN_SECONDS ); -
do_action( 'complianz_after_field', $args ); -
do_action( 'complianz_after_label', $args ); -
do_action( 'complianz_before_label', $args ); -
do_action( "complianz_tc_after_save_{$page}_option", $fieldname, $fieldvalue, $prev_value, $type ); -
do_action( "complianz_tc_before_save_{$page}_option", $fieldname, $fieldvalue, $prev_value, $type ); -
apply_filters( 'the_content', $tc_post->post_content ); -
apply_filters( 'wpml_active_languages', null, array( 'skip_missing' => 0 ) ); -
apply_filters( 'wpml_object_id', $policy_page_id, 'page', true, substr( get_locale(), 0, 2 ) ); -
do_action( 'wpml_register_single_string', 'complianz', $fieldname, $translation_string );
Generated from Complianz'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: