The contact-form-7 wpcf7 default template hook.
Published Date - July 22, 2023
return apply_filters( 'wpcf7_default_template', $template, $prop );
$template
$prop
The following example is for adding a hook callback.
// define the wpcf7_default_template callback
function custom_wpcf7_default_template( $template, $prop ){
//custom code here
return $template
}
//add the action
add_filter('wpcf7_default_template', 'custom_wpcf7_default_template', 10, 2)
The filter is defined in the following location(s).
contact-form-7/includes/contact-form-template.php
return apply_filters( 'wpcf7_default_template', $template, $prop );