Title: Manipulate data before POST
Last modified: July 2, 2018

---

# Manipulate data before POST

 *  [Saulo Padilha](https://wordpress.org/support/users/spadilha/)
 * (@spadilha)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/manipulate-data-before-post/)
 * Is it possible to manipulate the fields values before it POST to the API? I want
   to format the values of fields like telephone and acceptance.

Viewing 1 replies (of 1 total)

 *  [warpenstein](https://wordpress.org/support/users/warpenstein/)
 * (@warpenstein)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/manipulate-data-before-post/#post-10702110)
 * Hello, this may be an little late but I’m posting this anyway.
 *     ```
       add_filter('qs_cf7_api_get_args', function($args) {
       	$args['body']['email'] = 'x@y.com';
       	return $args;
       });
       ```
   
 * $args[‘body’] contains all the form fields and “email” is the name of the field
   I defined in the CF7 form editor.

Viewing 1 replies (of 1 total)

The topic ‘Manipulate data before POST’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/cf7-to-api.svg)
 * [Contact form 7 TO API](https://wordpress.org/plugins/cf7-to-api/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cf7-to-api/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cf7-to-api/)
 * [Active Topics](https://wordpress.org/support/plugin/cf7-to-api/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cf7-to-api/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cf7-to-api/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [warpenstein](https://wordpress.org/support/users/warpenstein/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/manipulate-data-before-post/#post-10702110)
 * Status: not resolved