wpcf7_posted_data

The contact-form-7 wpcf7 posted data hook.

Published Date - July 22, 2023

Description

$this->posted_data = apply_filters( 'wpcf7_posted_data', $posted_data );

Parameters

  1. $posted_data


Usage

The following example is for adding a hook callback.

// define the wpcf7_posted_data callback 
function custom_wpcf7_posted_data( $posted_data ){ 
   //custom code here
    return $posted_data
} 

//add the action 
add_filter('wpcf7_posted_data', 'custom_wpcf7_posted_data', 10, 1)

Defined

The filter is defined in the following location(s).

contact-form-7/includes/submission.php

$this->posted_data = apply_filters( 'wpcf7_posted_data', $posted_data );