wpcf7_autop_or_not

The contact-form-7 wpcf7 autop or not hook.

Published Date - July 22, 2023

Description

return (bool) apply_filters( 'wpcf7_autop_or_not', WPCF7_AUTOP );

Parameters

  1. $WPCF7_AUTOP


Usage

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)

Defined

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