Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to add links, what would be correct code?


  • newbie2011
    Participant

    @newbie2011

    I installed the bp sliding login panel and I need to put a link just for the admins and users who can post to the site blog. Again trying to keep limited people to access the dashboard of wordpress. Sorry for the long post but, these are things I haven’t figured out yet. When adding code to the update-content.php the code will show up on the front end. I have added other links but, not any with a special function. Any help is appreciated. Thanks

Viewing 1 replies (of 1 total)

  • modemlooper
    Moderator

    @modemlooper

    You wrap your link to admin with a capability check

    `if ( current_user_can(‘edit_post’) ) {
    Link code here
    }
    `

Viewing 1 replies (of 1 total)
  • The topic ‘How to add links, what would be correct code?’ is closed to new replies.
Skip to toolbar