Changes between Version 1 and Version 2 of Ticket #18561, comment 45
- Timestamp:
- 09/01/11 17:28:57 (21 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #18561, comment 45
v1 v2 12 12 What I'm thinking is that if there was a standard way to name things, much like the template hierarchy, then theme authors could choose to use it. Plugin authors could use that to hook into specific places in the theme. This doesn't have to be limited to the content and the loop and such. The idea can expand beyond that. 13 13 14 For example, what if the concept of a "menu" became a part? Theme authors could call get_template_part('menu') and have a menu.php file that output their menu. Maybe this would be as simple as a call to wp_ page_menu or maybe it could be complex. Depends on the theme.14 For example, what if the concept of a "menu" became a part? Theme authors could call get_template_part('menu') and have a menu.php file that output their menu. Maybe this would be as simple as a call to wp_nav_menu or maybe it could be complex. Depends on the theme. 15 15 16 16 But if they were calling this function, then a plugin could hook into get_template_part_menu or get_template_part_menu_after to put things before or after the menu area on the page.
