To change the load order of a wordpress plugin to make it load first you just need to add a priority number argument to its add_filter call in the plugin code. The default value of this third parameter is 10 and indicates the least priority meaning it will be loaded last. You can change it to any lower number from 0 to 9 and that will make it appear first in that order. Your wordpress plugin code in its class constructor will have a line like
add_filter('the_content', array(&$this, 'social_widget'));
As you can see the third argument is not set giving it a default value of 10. Change this value to say 0 and will make that plugin content load first in your post. If you have two different plugins whose load order should be changed, then you can set 0 for the first one, and 1 for the second one. Your modified code would look like
add_filter('the_content', array(&$this, 'social_widget'), 0);







No Comments Yet - be the First!