Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,692
- How-to & Troubleshooting
- 128,225
- Creating & Extending
- 25,679
- Requests & Feedback
- 9,405
- Third Party Plugins
- 9,753
- Showcase
- 3,321
- Ideas
- 1,349
- Miscellaneous
- 8,879
-
hi I just tried the following code, but it is not working as expected:
function bp_dump() {
global $bp;
if(!$bp->loggedin_user->id)
header(“location:my_website_address”);
}
add_action( ‘wp’, ‘bp_dump’ );
Kindly let me know what am I doing wrong
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS