Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Access to BP functions in external code via wp-load

@johnmontfx

Participant

Thanks so much Dan — I really appreciate the response. Eventually I will be doing things the way you suggest, but I have a custom architecture for a learning site that I’m transitioning to WordPress over the next six months. There are dozens of pages and interdependencies which I’m cleaning up, so I’ve decided to do the integration in stages since it will take time.

I can write some custom db code to grab the information from the appropriate xprofile table, but I was hoping to not fully reinvent the wheel as you suggested. At this point, I’ve probably spent more time trying to use the bbpress functions than it would have take to write my own db function 🙂

I think the issue is that bp-xprofile-loader.php hasn’t been called yet, which is where those values get defined. So it seems that bbpress gets loaded but not fully initialized until somewhere later in the code. Maybe when the templates load or wp() is called.

Thanks again…really appreciate your time and the sensible response.

Skip to toolbar