Skip to:
Content
Pages
Categories
Search
Top
Bottom

Create profile fields visible only to administrator

  • Avatar of carmelneta
    carmelneta
    Participant

    @carmelneta

    hey,
    Trying to create a profile fields of a user that will be visible to adim only.
    so far I`ve tried to use the current_user_can wp function in the The Profile Data Loop, but it didn`t go so well.
    Any ides?

    Thanks,
    Carmel.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Avatar of Roger Coathup
    Roger Coathup
    Participant

    @rogercoathup

    What was the problem you encountered with your approach?

    Paste your code, and let us know the error messages, and someone may be able to assist.

    Avatar of scal3x
    scal3x
    Participant

    @scal3x

    While looking for a solution to the same question, I stumbled upon this: dev update. Boone B. Gorges made a “sample plugin to show how these visibility levels can be extended”: BBG’s Sample Visibility Plugin. All you have to do is create a new folder in your wp-content/plugins, and upload bbg-custom-bp-field-visibility.php & loader.php into your new folder. Then, modify bbg-custom-bp-field-visibility.php to your liking.

    Avatar of jomilla
    JoMilla
    Participant

    @jomilla

    Thanks so much scal3x!

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.