Don’t work a user role removing via trigger a Contact Form 7 form submitting

[ad_1]

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!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer