Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,840
- How-to & Troubleshooting
- 129,871
- Creating & Extending
- 25,907
- Requests & Feedback
- 9,550
- Third Party Plugins
- 9,832
- Showcase
- 3,316
- Ideas
- 1,402
- Miscellaneous
- 9,179
-
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.