The contact-form-7 wpcf7 autop or not hook.
Published Date - July 22, 2023
return (bool) apply_filters( 'wpcf7_autop_or_not', WPCF7_AUTOP );
$WPCF7_AUTOP
The following example is for adding a hook callback.
// define the wpcf7_autop_or_not callback
function custom_wpcf7_autop_or_not( $WPCF7_AUTOP ){
//custom code here
return $WPCF7_AUTOP
}
//add the action
add_filter('wpcf7_autop_or_not', 'custom_wpcf7_autop_or_not', 10, 1)
The filter is defined in the following location(s).
contact-form-7/includes/functions.php
return (bool) apply_filters( 'wpcf7_autop_or_not', WPCF7_AUTOP );