wpcf7_deprecated_function

The Contact Form 7 wpcf7 deprecated function function.

Description

wpcf7_deprecated_function( $function, $version, $replacement ); 

Parameters (3)

0. $function
The function.
1. $version
The version.
2. $replacement
The replacement.

Usage

  1. if ( !function_exists( 'wpcf7_deprecated_function' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'contact-form-7/includes/functions.php'; 
  3.  
  4. // The function. 
  5. $function = null; 
  6.  
  7. // The version. 
  8. $version = null; 
  9.  
  10. // The replacement. 
  11. $replacement = null; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = wpcf7_deprecated_function($function, $version, $replacement); 
  15.  

Defined (1)

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

/includes/functions.php  
  1. function wpcf7_deprecated_function( $function, $version, $replacement ) { 
  2. $trigger_error = apply_filters( 'deprecated_function_trigger_error', true ); 
  3.  
  4. if ( WP_DEBUG && $trigger_error ) { 
  5. if ( function_exists( '__' ) ) { 
  6. trigger_error( sprintf( __( '%1$s is <strong>deprecated</strong> since Contact Form 7 version %2$s! Use %3$s instead.', 'contact-form-7' ), $function, $version, $replacement ) ); 
  7. } else { 
  8. trigger_error( sprintf( '%1$s is <strong>deprecated</strong> since Contact Form 7 version %2$s! Use %3$s instead.', $function, $version, $replacement ) );