Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 24,004
- How-to & Troubleshooting
- 129,611
- Creating & Extending
- 25,789
- Requests & Feedback
- 9,498
- Third Party Plugins
- 9,791
- Showcase
- 3,316
- Ideas
- 1,384
- Miscellaneous
- 9,173
-
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