Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

DB saves unnecessary data

$
0
0

Replies: 0

I have a contact form with some hidden text boxes, that the user cannot modify.
I want to make it so that when the user registers it does not save the data in the database.
I have tried the following:

add_filter('vsz_cf7_unwanted_form_data_submission','vsz_restrict_form_data_submission');
function vsz_restrict_form_data_submission($contact_form_ids){
	$contact_form_ids = array('nosave');
	return $contact_form_ids;
}

and then giving the id nosave to the textfields, however it is not working, can anyone help me out?

Also it seems like the form stores data such as “_wpcf7cf_hidden_group_fields” and more. Is this data necessary? and if not, how do I stop it from being stored?

  • This topic was modified 58 minutes ago by theblindhawk. Reason: added tags

Viewing all articles
Browse latest Browse all 59525

Trending Articles