Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,965
- How-to & Troubleshooting
- 129,265
- Creating & Extending
- 25,784
- Requests & Feedback
- 9,479
- Third Party Plugins
- 9,784
- Showcase
- 3,317
- Ideas
- 1,401
- Miscellaneous
- 9,165
-
Oh – well – I don’t want to slow down the site. Hmm.. Is there a way to grab the userid from WP or BP?
I was thinking of something like this in the functions.php – is that cached?
function my_admin_post() {
global $bp;
if ( $bp->displayed_user->id == 1 )
return true;
return false;
Update
— Alas that didn’t work
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS