/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function this_plugin_first() { // ensure path to this file is via main wp plugin path $active_plugins = get_option('active_plugins'); if ($this_plugin_key) { // if it's 0 it's the first plugin already, no need to continue update_option('active_plugins', $active_plugins); } } add_action("activated_plugin", "this_plugin_first");
URL: http://wordpress.org/support/topic/how-to-change-plugins-load-order
Comments
