Forums

Remove "Site Admin" footer link. (2 posts)

  1. jtap
    Member
    Posted 1 year ago #

    I am trying to remove the "Site Admin" link from the footer if the logged in user is only at "User" level, not an administrator.

    If this can not be done, I would like to simply remove it. However, I would like the "Register" link to still show - I know these two functions are connected, but is there a way to do this somehow?

    Any help would be greatly appreciated.

    Thanks!

  2. Hax
    Member
    Posted 1 year ago #

    This should do the trick, it will only display the links if an administrator is logged in

    <?php if( current_user_can( 'administrator' ){ ?> <!--ADD YOUR LINKS HERE --><?php } ?>

Topic Closed

This topic has been closed to new replies.

About this Topic