Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jose Barrera Mayoral

    (@chespir)

    Hi Ben.

    By default, when you active or deactive a plugin, WordPress resets the database variable that Plugins Load Order uses.

    Solving this problem is a feature I could not develop yet

    Thread Starter Jose Barrera Mayoral

    (@chespir)

    • My site does not allow to upload SVG files, and no SVG file hav been uploaded by plugin.
    • No I can’t, the same error.
    • The plugin is okey on a DEV environment, so for me is okey if you want to mark the issue as resolved.

    Thread Starter Jose Barrera Mayoral

    (@chespir)

    Sent privately, thanks

    Plugin Author Jose Barrera Mayoral

    (@chespir)

    Hi @phonyroyal

    It is difficult to answer your question because it depends in how each plugin works in its core.

    Based on your example, iQ Country Block will be the first plugin loading its functionality, but WordPress is based on events too, and each plugin registers some functionality on those events with some priority. This priority is the one which I mentioned on last post.

    So WordPress loads all plugins (this order can be modified by PLO). After that WordPress fires events. WordPress checks plugin’s functionality attached to current event and loads it in order (PLO do NOT modify this order unless two plugins register some functionality on the same event with the same priority. In this case the functionality of the first plugin registering, is the first executed).

    Briefly, is a good practice to use PLO, but it also depends on the other plugins.

    PLO is needed if a plugin uses another plugin’s function. If you load a custom plugin called plugin-foo after IQ Country Block, but plugin-foo need some functionality of IQ Country Block, your site may crashed.

    Plugin Author Jose Barrera Mayoral

    (@chespir)

    Hi @phonyroyal

    The three lines you mentioned refers to Plugins Load Order (PLO) itself.

    WordPress default order is alphabetical, so when you activated PLO, you saw plugin stack ordered alphabetically.

    PLO modifies an option stored at WordPress database. When you are at PLO options page, you see plugin stack order, in other words you are seeing the array stored at database graphically. When you save PLO options, WordPress option is modified.

    If a plugin or WordPress itself modifies WordPress option at database, this order will be the new one as PLO does not store a secondary plugin stack.

    If you want “iQ Block Country” to be loaded before “Wordfence Security”, put “iQ Block Country” above “Wordfence Security”. Take into account that the stack of apply_filters or do_action will not be modified.

    Tell me if you have any doubt.

Viewing 5 replies - 1 through 5 (of 5 total)