Skip to:
Content
Pages
Categories
Search
Top
Bottom

Facestream and Tweetstream for Admin only

  • Avatar of guigoz
    guigoz
    Member

    @guigoz

    Hi,

    I wonder how to allow acces to Facestream and Tweetstream plugin for Admins only. Any idea ?

    Thanks.
    Guillaume.

Viewing 1 replies (of 1 total)
  • Avatar of guigoz
    guigoz
    Member

    @guigoz

    I’ve placed this code before button display. But I think it will be better to charge the plugin only if the admin is logged in, just after to have checked if buddypress is runing, I don’t know how to do that. Excuse my english..

    if ( $bp->loggedin_user->is_site_admin ) {

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.