The following is an unofficial standard for hooks within WordPress Themes. This standard is designed to improve the quality of themes and relation their relationship with WordPress plugins. Currently this is a work in progress, please take it with a grain of salt. Use the hooks that make sense to have.
The following code should be common within all page templates. The code below uses PHP functions, not the actual hook code.
<?php theme_doctype(); // create filter with same name ?> <html> <head> <?php theme_head(); // create action with same name ?> <?php wp_head(); // nothing more needs to be done ?> </head> <body> <?php theme_before_container(); // create action with same name ?> <div id='container'> <?php theme_before_header(); // create action with same name ?> <div id='header'> <?php theme_header(); // create action with same name ?> </div> <?php theme_after_header(); // create action with same name ?> <?php theme_before_content(); // create action with same name ?> <div id='content'> <?php theme_content(); // create action with same name ?> </div> <?php theme_after_content(); // create action with same name ?> <?php get_aside(); // Your sidebars ?> <?php theme_before_footer(); // create action with same name ?> <div id='footer'> <?php theme_footer(); // create action with same name ?> <?php wp_footer(); // nothing more needs to be done ?> </div> <?php theme_after_footer(); // create action with same name ?> </div> <?php theme_after_container(); // create action with same name ?> </body> </html>
The asides(); fetches the function that attaches any sidebars. The other functions attach WordPress hooks, which plugins can then use.
Please list your theme here if it uses the standard.