• Resolved SandyRig

    (@sandyrig)


    I have a plugin disabled on a page and it works fine but when the form on the page is submitted which actually posts form data to self basically reloading the page the disabled plugin shows up.

    So how can I target form submission to disable the plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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

    Thread Starter SandyRig

    (@sandyrig)

    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.