Send Mail with link to current_user

Gravity Forms will be your solution, but you will have to do some custom notifications. You will also need User Registration Add-On the https://www.gravityforms.com/add-ons/user-registration/ What you will need to do is: Create a hidden field called for example “current user email” and allow it to be populated automatically. Create a user registration feed and select … Read more

Using transients to store form notifications

I would use user ID then user IP if not logged in, you can store the result like the following: /* your form validation/submission logiccode goes here */ $max_execution_tim = @ini_get(‘max_execution_time’); $submission_result = array(‘message’ => ‘Worked!’, ‘status’ => ‘success’); // You can use this function: // https://stackoverflow.com/a/6718472/1321398 $user_ip = GetIP(); $transient_name = is_user_logged_in() ? “form_submission_user-” … Read more

Simple filter to change label name of Email Adress to something else

add_action( ‘user_new_form’, ‘change_label_form’ ); function change_label_form() { echo ‘<script> jQuery(document).ready(function($) { $(“label[for=email]”).html(“Example”); } ); </script>’; } here is trick worked for me , you can change the label for any filed by using the for tag in the label and you can add action on any form you like, as add_action( ‘edit_user_profile_update’, ‘change_label_form’ ); Here … Read more

Creating a WordPress addon for ContactForm7 submission (.XML file export)

The file is not created, because the function my_generate_xml exists, but is never called. All that code looks correct. The only problem is that you have to call the function that generates the XML file… add_action(‘wpcf7_before_send_mail’, ‘my_get_form_values’); function my_get_form_values($contact_form) { // get info about the form and current submission instance $formTitle = $contact_form->title(); $submission = … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)