• guylancaster

    (@guylancaster)


    In a plugin that I am writing, I would like to hide the content and display some other content on every page for non admins.

    function display()
    {
    if (! current_user_can(‘manage_sites’ ) )
    {
    seems like a good start.

    Any suggestions much appreciated. No theme tweaking solutions please.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hide content for non admins’ is closed to new replies.