how do I add a custom template name to bbpress?
From within a plugin I wanted to attach a new template/page name within the bbpress structure but I cannot figure out how to do it?
Let’s say I want to have a custom page called “list-plugins”
The only way I was able to do this was to create new file in the bbpress root like this and save it as list-plugins.php
$bb_db_override = false;
do_action( 'bb_index.php_pre_db', '' );
do_action( 'bb_index.php', '' );
Then that would load list-plugins.php in my template folder.
But can’t I attach a fake template name to bbpress via it’s rewrite system without having a physical file?
- You must be logged in to reply to this topic.