Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How to include the global $bp variable within newly created directory within my current theme.

@djpaul

Keymaster

Just put “global $bp;” in the PHP above where you need to use it. It’s better to find a function that provides the information you need directly, rather than accessing globals like this (though it’s a perfectly valid thing to want to do).

For example, to get the logged in user’s ID: get_current_user_id()

Skip to toolbar