Disable a plugin on form submission

[ad_1]

Plugin Author
Jose

(@giuse)

Hi @sandyrig

this is because FDP doesn’t disable any plugin if there is a Post request and you don’t set anything in Actions => Post Actions Recorder
You can disable plugins depending on the Post requests only with the PRO version. You can read more details here: https://freesoul-deactivate-plugins.com/how-deactivate-plugiins-on-specific-pages/cleaning-ajax-post-actions/

However, already the free version gives you the possibility to ignore the Post requests by adding this line of code in wp-config.php:

define( 'EOS_DP_ALLOW_POST', true );

Add it before the comment /* That’s all, stop editing! Happy publishing. */

Then I suggest you to check everything on your website. Check any kind of process like form submissions, checkouts…
This is not the default because many plugins call the homepage with a Post request during their processes.
If for example you have disabled plugin A on the homepage, and plugin A manages the submission of a form that you have on the contact page, then when you submit the form the process will fail because plugin A will call the homepage, but the same plugin is disabled on the homepage.
This is why FDP doesn’t disable any plugin if there is a Post request.

The policy behind FDP is precautionary when possible.
If there is a doubt between having something that does not work and a slower page, the solution that guarantees the functioning is always chosen.

I hope it helps. If something is not clear or it doesn’t work after allowing the post requests, let me know.

Have a great day!

Jose

Thank you for the very quick and detailed reply Jose.

This has fixed it for me. define( 'EOS_DP_ALLOW_POST', true );

We have Elementor installed on the site just to create 1 landing page but Elementor was loading resources everywhere slowing the site down. We used this plugin to disable it every where but that one landing page and it worked great.

This is an awesome plugin!

Thank you

Plugin Author
Jose

(@giuse)

You are welcome @sandyrig

I’m happy that it works.

Have a great day!
Jose

 

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