Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: bp_loggedin_user_id() is always 0

@henrywright

Moderator

You can use add_action() anywhere. Whether or not it executes the functions attached to it is another question. Take the add_action() inside your function for example. It’ll only execute custom_bp_subnav() on the condition that $loggedin == $displayed. Also the bp_ready hook must be running.

Skip to toolbar