wpcf7_copy

The contact-form-7 wpcf7 copy hook.

Published Date - July 22, 2023

Description

return apply_filters( 'wpcf7_copy', $new, $this );

Parameters

  1. $new

  2. $instance


Usage

The following example is for adding a hook callback.

// define the wpcf7_copy callback 
function custom_wpcf7_copy( $new, $instance ){ 
   //custom code here
    return $new
} 

//add the action 
add_filter('wpcf7_copy', 'custom_wpcf7_copy', 10, 2)

Defined

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

contact-form-7/includes/contact-form.php

return apply_filters( 'wpcf7_copy', $new, $this );