2010-07-20, 01:33:30
Choosing a location to have the hook the way the menu function is currently working will be a bit hard. It will be easy to add some hooks before and after the generated LI-elements. I haven’t committed this to the latest dev version (yet) but here’s what you could do:
Open up /admin/inc/theme_functions.php and scroll all the way down (row 362). Here you will find this:
Now change it to this:
Now use these two hooks (pre-menuitems, post-menuitems) as normal.
I’ll be looking into this a bit for the next GetSimple version. It would be nice to have a little more control over the menu as plugin developers.
Open up /admin/inc/theme_functions.php and scroll all the way down (row 362). Here you will find this:
Code:
echo $menu;
Code:
exec_action('pre-menuitems');
echo $menu;
exec_action('post-menuitems');
I’ll be looking into this a bit for the next GetSimple version. It would be nice to have a little more control over the menu as plugin developers.
“Don’t forget the important ˚ (not °) on the a,†says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!