Jose Barrera Mayoral
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugins Load Order] Automatic reset?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
Forum: Plugins
In reply to: [Web Stories] Crash after activate- 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.
Forum: Plugins
In reply to: [Web Stories] Crash after activateSent privately, thanks
Forum: Plugins
In reply to: [Plugins Load Order] Confusing options – load sequenceHi @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.
Forum: Plugins
In reply to: [Plugins Load Order] Confusing options – load sequenceHi @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.