• Hi Jeff,

    As the title says. For example:

    • Does “Post Type Plugins” override “Global plugins”?
    • Does a “Plugin Filter” override “Post Type Plugins” and “Global plugins”?

    Thanks!

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

    (@foomagoo)

    Plugin filters and post type settings can override the global settings. Post type settings take precedence over plugin filters.

    Thread Starter diegocanal

    (@diegocanal)

    Post type settings take precedence over plugin filters.

    Is there any workaround to make it the other way around? I mean to make plugin filters take precedence over Post type settings.

    Thank you!

    Plugin Author Jeff Sterup

    (@foomagoo)

    Nope. That’s how it is coded.

    Thread Starter diegocanal

    (@diegocanal)

    OK, understood.

    Thanks a lot!

    MeTP

    (@metp)

    Great question! Thanks for the answers Jeff. Can I add the page-specific overrides to this question? Do they only override the post type settings or do they also override the global settings?

    thisisbbc

    (@thisisbbc)

    @foomagoo can you please add the rule priority list to the plugin description?

    I often come back here to find this information and it’s a bit cumbersome to scavenge through the support threads for an answer.

    I have a page override with the “Affect Children” option checked.

    All children pages do not have any override. The only rule affecting those pages would be the Post Type rules for Pages.

    Currently it looks like the Post Type rule takes precedence over a Post Override + Affect Children.

    How can I make sure that the post override for children is triggered? (Let me know if you prefer that I open a new thread).

    Thanks!

    Thread Starter diegocanal

    (@diegocanal)

    Hi Jef,

    I agree with @thisisbbc about adding the rule priority list to the plugin description.

    Furthermore, I would place warning messages across all the sections of the plugin’s backend, for example: within the plugin filters section, on the filter edit UI –when creating or editing a filter– I would add a warning message saying something like “Be aware that this filter will be overridden by the post type settings in case they clash…”. I would specify all possible overrides.

    This way I think you would get far fewer support questions from users that think the plugin is not working properly due to having a setting overridden by another one.

    newshop

    (@newshop)

    Yes it would be a huge help to learn which ones override which ones.
    I am using WPML and my problem is that I want the english and the german page to have the same filter settings.
    When I had only one language, I set the filters manually on the respective edit page screen (selective plugin loading). But now having two (or more) languages, that makes no sense.
    So it would be the best solution to create a preset e.g. called “General Terms & Conditions Page” and then define which filters are enabled and disabled on this preset. Then I could go ahead to the english and the german pages (edit pages) and select this preset. So I would make sure that I have to do my changes only in the preset and not on each edit page. Do you know what I mean?

    Is there a simple solution for this? I made several tests but always had the problems with overriding and could not find any help about how to set this up properly.

    Any help would be really appreciated.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘What does it take precedence: Global vs Post Types vs Filters?’ is closed to new replies.