bbPress

Simple, Fast, Elegant

bbPress support forums » Themes

Where should I declare theme-specific functions

(3 posts)
  • Started 3 months ago by hudatoriq
  • Latest reply from Detective
  • This topic is not resolved
  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.

    Posted 3 months ago #
  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.

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

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

    Posted 3 months ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.