deprecated_hook_trigger_error

The contact-form-7 deprecated hook trigger error hook.

Published Date - July 22, 2023

Description

if ( WP_DEBUG and apply_filters( 'deprecated_hook_trigger_error', true ) ) {

Parameters

  1. $true


Usage

The following example is for adding a hook callback.

// define the deprecated_hook_trigger_error callback 
function custom_deprecated_hook_trigger_error( $true ){ 
   //custom code here
    return $true
} 

//add the action 
add_filter('deprecated_hook_trigger_error', 'custom_deprecated_hook_trigger_error', 10, 1)

Defined

The filter is defined in the following location(s).

contact-form-7/includes/functions.php

if ( WP_DEBUG and apply_filters( 'deprecated_hook_trigger_error', true ) ) {