The contact-form-7 wpcf7 contact form default pack hook.
Published Date - July 22, 2023
self::$current = apply_filters( 'wpcf7_contact_form_default_pack',
$contact_form, $args
);
$contact_form
$args
The following example is for adding a hook callback.
// define the wpcf7_contact_form_default_pack callback
function custom_wpcf7_contact_form_default_pack( $contact_form, $args ){
//custom code here
return $contact_form
}
//add the action
add_filter('wpcf7_contact_form_default_pack', 'custom_wpcf7_contact_form_default_pack', 10, 2)
The filter is defined in the following location(s).
contact-form-7/includes/contact-form.php
self::$current = apply_filters( 'wpcf7_contact_form_default_pack',
$contact_form, $args
);