Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Members Only


Peter A. Gebhardt
Participant

@starship-trooper

Addendum: To check a user’s role anywhere in your code use

<?php if (bb_current_user_can('administrate')) { ?> .....

(by replacing administrate by the proper role description)

as proposed here:

https://bbpress.org/forums/topic/page-elements-viewable-only-to-admin

Skip to toolbar