Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,952
- How-to & Troubleshooting
- 129,225
- Creating & Extending
- 25,784
- Requests & Feedback
- 9,473
- Third Party Plugins
- 9,782
- Showcase
- 3,317
- Ideas
- 1,401
- Miscellaneous
- 9,164
-
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