add_filter( 'wpcf7_posted_data', 'custom_store_tag_in_flamingo' );
function custom_store_tag_in_flamingo( $posted_data ) {
if ( isset( $posted_data['calculation'] ) ) {
$posted_data['calculation_field'] = $posted_data['calculation'];
}
return $posted_data;
}
Thank you for your help!
]]>The form gave me error 500 generated by wp-json/contact-form-7/v1/contact-forms/3497/feedback
So i activated wp_debug and found this:
[28-Feb-2023 14:05:19 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_invalid_fields() on null in /home/ima/public_html/wp-content/plugins/contact-form-7/includes/submission.php:645
Stack trace:
#0 /home/ima/public_html/wp-content/plugins/contact-form-7/includes/submission.php(82): WPCF7_Submission->validate()
#1 [internal function]: WPCF7_Submission->{closure}()
#2 /home/ima/public_html/wp-content/plugins/contact-form-7/includes/l10n.php(147): call_user_func(Object(Closure))
#3 /home/ima/public_html/wp-content/plugins/contact-form-7/includes/submission.php(131): wpcf7_switch_locale('en_US', Object(Closure))
#4 /home/ima/public_html/wp-content/plugins/contact-form-7/includes/submission.php(35): WPCF7_Submission->proceed()
#5 /home/ima/public_html/wp-content/plugins/contact-form-7/includes/contact-form.php(1043): WPCF7_Submission::get_instance(Object(WPCF7_ContactForm), Array)
#6 /home/ima/public_html/wp-content/plugins/contact-form-7/includes/rest-api.php(357): WPCF7_ContactForm->submit()
#7 /home/ima/public_html/wp-includes/rest-ap in /home/ima/public_html/wp-content/plugins/contact-form-7/includes/submission.php on line 645
So i checked my from and i use three custom tag, if i remove these custom tags the form works again.
I use the tag validation filter like this:
add_filter( 'wpcf7_validate_ima_acceptance1*', 'wpcf7_checkbox_validation_filter', 20, 2 );
and i found out that if i remove this validation the form works again, so the problem is in this code.
Can you help me understand where the problem is?
Thanks!
]]>I like to add a custom meta key to the rename file option.
The custom field is created in the register form of Ultimate Member
and is called “company_name”. Could you help me achieve this?
eg. {company_name}-{username}-{filename}
]]>Contrived example:
* CPT: Business. Term: Mario’s Italian, Chicago Doctor
* CC: Business Type. Term: Restaurant, Health
* CT: Cuisine. Term: Mexican, Italian
* CPT “Mario’s Italian” is assigned the Business Type CC “Restaurant” while CPT “Chicaco Doctor” is assigned the CC “Health”. “Mario’s Italian” should have the option of selecting one (or more) of the terms of CT “Cuisine”; “Chicago Doctor” should not.
Is this possible?
]]>when I add a custom tags like <my tag> in “Text” mode and then switch to “Visual”, the custom tags is removed. how can I prevent it?
Thanks
Nexus
is it possible to use the form fields from ultimate member inside a cf7 form?
I tried to use the um shortcode in a cf7 form, something like this:
]
but it doesn`t work.
Is there a way to do this?
Thanks
]]>I want to include a proximity search option where the user can set the postcode and the search plugin should filter all posts within a specified proximity of GPS coordinates set as custom fields in the post.
Is it possible to program a custom field in the search dialog which can check this? All the proximity stuff I can program in the backend in a function.
]]>I’ve created a custom tag that allows the user to specify the labels used for the inputs, however if they enter a space, WPCF7 treats them as separate options.
When wrapping them in double quotes, it stops WPCF7 identifying the name of the tag.
[toggle email_invoices yes:Yes no:No] Can we use this email to send out invoices? [/toggle]
The above is a working example, but I need the Yes and No attributes to support multiple words.
The only alternative I can think of is to instruct the users to replace spaces with an underscore but that’s not particularly user friendly.
Any suggestions?
]]>add_filter( 'mailchimp_sync_subscriber_data', function(MC4WP_MailChimp_Subscriber $subscriber) {
$subscriber->tags[] = 'Email Registration';
return $subscriber;
},10, 2);
but its not working.user email is syncing correctly to mailchimp but user tag is not added.please let me know what i am doing wrong
Thank You