Info
- 3 posts
- 3 voices
- Started 4 years ago by Huda
- Latest reply from Detective
- This topic is resolved
Where should I declare theme-specific functions
-
- Posted 4 years ago #
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 4 years ago #
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 years ago #
I'm using a functions.php file. It's being loaded it in the header:
<?php require_once(bb_get_template('functions.php')); ?> -
You must log in to post.