Title: mac33's Replies | WordPress.org

---

# mac33

  [  ](https://wordpress.org/support/users/mac33/)

 *   [Profile](https://wordpress.org/support/users/mac33/)
 *   [Topics Started](https://wordpress.org/support/users/mac33/topics/)
 *   [Replies Created](https://wordpress.org/support/users/mac33/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/mac33/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/mac33/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/mac33/engagements/)
 *   [Favorites](https://wordpress.org/support/users/mac33/favorites/)

 Search replies:

## Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] Custom function $posted_data not working after 5.2](https://wordpress.org/support/topic/custom-function-posted_data-not-working-after-5-2/)
 *  [mac33](https://wordpress.org/support/users/mac33/)
 * (@mac33)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/custom-function-posted_data-not-working-after-5-2/#post-13408621)
 * I am in the same situation.
    Can you tell us if the next update will fix the 
   problem or if another function exists? Thank you so much !
 *     ```
         // Create the new wordpress action hook before sending the email from CF7
       add_action( 'wpcf7_before_send_mail', 'my_conversion' );
          function my_conversion( $contact_form ) {
          $submission = WPCF7_Submission::get_instance();
         $form_id = $contact_form->id();
         // Get the post data and other post meta values
       if ( $form_id == 1363 ) {
       if ( $submission ) {
           $posted_data = $submission->get_posted_data();
           $remote_ip = $submission->get_meta( 'remote_ip' );
           $url = $submission->get_meta( 'url' );
           $timestamp = gmdate("Y-m-d H:i:s", $submission->get_meta( 'timestamp' ));
           $title = wpcf7_special_mail_tag( '', '_post_title', '' );
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] Custom function $posted_data not working after 5.2](https://wordpress.org/support/topic/custom-function-posted_data-not-working-after-5-2/)
 *  [mac33](https://wordpress.org/support/users/mac33/)
 * (@mac33)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/custom-function-posted_data-not-working-after-5-2/#post-13372971)
 * Hi,
    I have the same problem. Since cf7 v5.2.2 my own function to insert data
   in sellsy doesn’t work anymore. $posted_data = $submission->get_posted_data();
   How can I solve it ? Thanks, Have a nice day
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[CF7 to Webhook] php 5.6](https://wordpress.org/support/topic/php-5-6-6/)
 *  Thread Starter [mac33](https://wordpress.org/support/users/mac33/)
 * (@mac33)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/php-5-6-6/#post-11987024)
 * Ok 🙂
    Thank you very much

Viewing 3 replies - 1 through 3 (of 3 total)