• Resolved mohdlatif

    (@mohdlatif)


    On the backend URL page, is there an option to make a plugin load on all pages except on certain page that match regex.

    Example, to unload a plugin on page you will use

    *?page=eos_dp_admin_url*

    I want to invert this, load everywhere except if url match the above ReGex

Viewing 1 replies (of 1 total)
  • Plugin Author Jose Mortellaro

    (@giuse)

    Hi @mohdlatif

    it’s already so.

    On the backend URL page, is there an option to make a plugin load on all pages

    that means you don’t touch that plugin in any settings, and that plugin will load on all pages.

    except on certain pages that match regex

    You use Backend => Backend URLs to match that page and deactivate that plugin

    Imagine you want a specific plugin active everywhere except for example on https://your-site.com/wp-admin/edit.php?post_type=page.
    In this case, you don’t deactivate anywhere that plugin in the backend, but you deactivate it only on the page https://your-site.com/wp-admin/edit.php?post_type=page.
    In the case of this example to deactivate it on that page you can use Backend => Singles or Backend => Backend URLs.

    Or did you mean the contrary?
    If you meant the contrary, with the free version, you don’t have the option to unload a plugin everywhere except a specific page. With the PRO version you can disable a plugin everywhere in the backend with Backend => Backend Everywhere (see picture), and then enable it on the page where you need it with Backend => Backend URLs.

    In a future version, FDP PRO will also give the possibility to load an inactive plugin only on specific pages, but this will also be a PRO feature. “Inactive plugin” means that is globally not active on the page of plugins.

    In your example you used *?page=eos_dp_admin_url*. This matches a FDP backend page. The settings don’t work for the FDP pages. If you need to disable plugins in the FDP pages you need to write this code in wp-config.php before the comment /* That’s all, stop editing! Happy publishing. */:

    define( 'FDP_DISABLE_IN_FDP_PAGE',array( 
        'plugin-folder1/plugin-main-file1.php',
        'plugin-folder2/plugin-main-file2.php' 
      );
    );

    Where you replace plugin-folder1/plugin-main-file1.php, plugin-folder2/plugin-main-file2.php… with the name of the plugin folder and the name of the main file of the plugin that is inside the plugin folder. For example, for WooCommerce you would use woocommerce/woocommerce.php.

    Let me know if I’ve understood right, or if you need more clarification.

    Have a great day!

    Jose

Viewing 1 replies (of 1 total)

The topic ‘Load everywhere except some pages’ is closed to new replies.