WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #18561, comment 45


Ignore:
Timestamp:
09/01/11 17:28:32 (3 years ago)
Author:
Otto42
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18561, comment 45

    initial v1  
    1212What 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. 
    1313 
    14 For example, what if the concept of a "menu" because 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.  
     14For 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.  
    1515 
    1616But 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.