WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Question regarding overriding plugin filters

[Resolved] Question regarding overriding plugin filters

  • Hey Jeff,

    I have a question for you. If we decide to affect all children of a permalink but we would need one specific children to activate a plugin, would it be doable?

    Example : We use WooCommerce on our platform.
    95% of our posts won’t contain WooCommerce product, or widget.
    But eventually, we will create a post on a specific product, for reviewing purpose for example.
    If we set through Plugin Optimizer for this specific page to load WooCommerce. Which rules prevails?

    Sincerely,
    Bastien

    https://wordpress.org/plugins/plugin-organizer/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jeff Sterup

    @foomagoo

    Yes. There is a sort of hierarchy to it. The settings for the page/post being loaded will override anything from a parent or global settings. The second will be a matching plugin filter. Then the plugin starts to search for a parent in the url structure and stops when it finds one. So you could enable a plugin on a child page but it would still need the same plugins disabled on it to get what you want.

    Ok sounds perfectly good, thank you for the clarifications.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Question regarding overriding plugin filters’ is closed to new replies.