2011-08-31, 04:11:20
How are the sidebars in the admin panel sorted? For example, sidebar items (made by plugins) on the settings page..
Admin Sidebar Sorting
|
2011-08-31, 04:11:20
How are the sidebars in the admin panel sorted? For example, sidebar items (made by plugins) on the settings page..
2011-08-31, 05:17:46
2011-08-31, 05:36:56
n00dles101 Wrote:the main sidebar items are hardcoded Thanks for answering ![]() So the plugin filename controls the order (Alphabetically), or the plugin name?
2011-08-31, 05:43:13
Just looking into this. The files in the plugin folder read in using the opendir function which on a Unix/Linux system will return the files according to the filestamp.
This causing a problem? Priority system is easy to implement. It does make sense for some plugins to run after all other, caching etc... M n00dles101 Wrote:Just looking into this. The files in the plugin folder read in using the opendir function which on a Unix/Linux system will return the files according to the filestamp. Its not* (edit: Forgot the "not") so much of a problem as it is an annoyance, I have run into times where the interface would be easier to use if the sidebar was organized a certain way. screenshot explains ![]() It would be great to be able to accomplish ordering like in the below snippet: Code: add_action('xxxxxx-sidebar','createSideMenu',array('your-plugin-filename','Menu Text',1)); |
« Next Oldest | Next Newest »
|