• I have just installed the great TDO Mini Forms plugin that allows you to add a form inside your blog where users can submit posts (without having to use the admin panel).
    Now I’d like to add a link to my sidebar for the page where I’ve included TDO Mini Forms and I’d like that link to only be available for the users that are actually allowed to use the form (in my case: administrators, editors and authors).
    In more general terms: How do I write a link that will only be visible to selected users, depending on their user role?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Staffan

    (@staffan)

    Anybody?

    Wow, never thought of that feature.

    You could grab the code from “form.php” where it does the check to see who can acces the form and add it in a template.

    I had the idea of using roles to define who access the forms. However I haven’t implemented the right way. If I had you could have you used the “current_user_can” function… maybe I should bump that up.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Making links only visible to selected user roles’ is closed to new replies.