Create a text field with do-not-store attribute
-
Hello, I am trying to create a new type of text with the characteristic that it does not save in Flamingo.
I’m using the ‘do-not-store’ option in the new type definition, but when I set it to true, it doesn’t store it in Flamingo, but it doesn’t send it in the mail either; If I set it to false, it stores it in Flamingo and also sends it in the email.
This is my code:
add_action( ‘wpcf7_init’, ‘custom_add_form_tag_newtext’,10,0 );
function custom_add_form_tag_newtext() {
wpcf7_add_form_tag(
‘newtext’,
‘custom_newtext_form_tag_handler’,
array(
‘name-attr’ => true,
‘do-not-store’ => true,
)
);
}What am I doing wrong?
Thank you.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Create a text field with do-not-store attribute’ is closed to new replies.