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