Skip to:
Content
Pages
Categories
Search
Top
Bottom

Where should I declare theme-specific functions


  • Huda
    Member

    @hudatoriq

    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.

Viewing 2 replies - 1 through 2 (of 2 total)

  • Sam Bauers
    Participant

    @sambauers

    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.

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

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

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.