Re: Get last page in bb_init
Hi Kevin. I found a “solution”. But I’m not proud of my code:
add_action('bb_topic.php', 'the_function');
add_action('bb_edit-post.php', 'the_function');
add_action('bb_forum.php', 'the_function');
add_action('bb_front-page.php', 'the_function');
add_action('whatever_other_template_page.php', 'the_function');
Basically speaking I hook those template pages that I need. The files in the root folder call:
bb_load_template('template_file.php', some_stuff);
in the very last line. That function calls the action bb_template_file.php, include() template_file.php and than calls the action bb_after_template_file.php
Maybe there’s a better solution. I’m not a bbPress expert.