Skip to:
Content
Pages
Categories
Search
Top
Bottom

functions.php vs. bp-custom.php


  • PJ
    Participant

    @pjnu

    Does anyone have a tutorial or page that describes the anatomy of of those two pages and how they differ? They’re mentioned quite a bit so I’d like to learn more about them. Thank you.

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

  • Boone Gorges
    Keymaster

    @boonebgorges

    For purposes of a single installation of BuddyPress, the main difference is when the files are loaded. Actions and filters in bp-custom.php are among the very first things loaded when BP is loaded. functions.php isn’t loaded until the theme is loaded, after all of the BP components. So if you need something to be loaded early, it’ll have to go into bp-custom.php.


    PJ
    Participant

    @pjnu

    Ah that’s helpful. Looking at where they are placed in the directories that now makes sense. Thank you very much.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘functions.php vs. bp-custom.php’ is closed to new replies.
Skip to toolbar