wpcf7_form_enctype

The contact-form-7 wpcf7 form enctype hook.

Published Date - July 22, 2023

Description

$enctype = wpcf7_enctype_value( apply_filters( 'wpcf7_form_enctype', '' ) );

Parameters

  1. $


Usage

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)

Defined

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