Forums

Join
bbPress Support ForumsThemesWhere should I declare theme-specific functions

Info

Where should I declare theme-specific functions

  1. Hi guys. I'm developing a custom theme. I need to declare some PHP functions to serve some feature, which also use bbPress hook & filters.

    Where is the best place to do this? I know in WordPress we can do this inside functions.php on our theme directory. What about bbPress? Is there similar place?

    Thanks.

  2. We'll probably add a "functions.php" for themes in the next version.

    You might be able to get away with just using your header file in the meantime.

  3. I'm using a functions.php file. It's being loaded it in the header:

    <?php require_once(bb_get_template('functions.php')); ?>

  4. You must log in to post.