wpcf7_default_template

The contact-form-7 wpcf7 default template hook.

Published Date - July 22, 2023

Description

return apply_filters( 'wpcf7_default_template', $template, $prop );

Parameters

  1. $template

  2. $prop


Usage

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)

Defined

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 );