• Resolved artyus

    (@artyus)


    Hello.

    I’ve been testing and found that one combination doesn’t work:

    trigger
    user submitting a specific form of Contact Form 7

    action
    removing the specified role from the user (WordPress action).

    On the test site only has Contact Form 7 and AutomatorWP active, but the combination above doesn’t work, so it’s obvious that the problem is in your plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Ruben Garcia

    (@rubengc)

    Hi @artyus

    I would be more than happy to assist you today!

    As explained in our CF7 integration FAQ: https://automatorwp.com/add-ons/contact-form-7/#faq

    “Forms submitted through ajax (the default workflow of Contact Form 7) can’t determine which current user is logged in causing that triggers from this integration won’t be completed. There are 2 ways to fix this issue:

    1) On the form(s) you want to connect with an AutomatorWP trigger you need to activate the subscribers-only mode:
    Contact Form > Additional Settings > subscribers_only: true

    2) Enable the subscribers-only mode to all forms placing the following code on your functions.php:

    add_filter( ‘wpcf7_verify_nonce’, ‘__return_true’ );

    Official post about subscribers-only mode from the Contact Form 7 team.

    Important: Forms with subscribers-only mode enabled will require to your users to stay logged-in in order to be able to submit the form, it means that visitors can’t submit the form.”

    So the most probable that you need here is to enable the Subscribers-only mode in this form and everything will work for you

    Hope it helps!

    Thread Starter artyus

    (@artyus)

    Thanks for the quick response!

    Yes, this is what need for me, and each of the solutions suits me perfectly.

    Unfortunately, the FAQ you mentioned is on the page for the paid version of the extension, and I tested the free version of your plugin, so I couldn’t find this answer myself.

    Thanks again for the answer and nice plugin!

    Sincerely,
    Farid Taziev.

    Plugin Author Ruben Garcia

    (@rubengc)

    Hi @artyus

    Yes, in the past we have all free integrations separated and each one with their specific FAQ but now they are all inside AutomatorWP plugin, for that the unique way we can get their FAQs separated is in our website

    Anyway, glad to meet that this resolved your issue! ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Don’t work a user role removing via trigger a Contact Form 7 form submitting’ is closed to new replies.