sidebar_ends, sidebar_start hooks
-
Hi!
I am writing an ad-plugin, and would like to be able to show up the ads in several places. One of them is the end of the sidebar. But as I see there is no hook for it.
Could you rewrite the get_sidebar function in wp-includes/template-functions-general.php as
function get_sidebar() {
do_action('sidebar_starts');
if ( file_exists( TEMPLATEPATH . '/sidebar.php') )
load_template( TEMPLATEPATH . '/sidebar.php');
else
load_template( ABSPATH . 'wp-content/themes/default/sidebar.php');
do_action('sidebar_ends');
}
I think that this could be helpful for a lot of plugin devs!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘sidebar_ends, sidebar_start hooks’ is closed to new replies.