WordPress.org

Ready to get started?Download WordPress

Forums

How to diable the post function (3 posts)

  1. JoE12
    Member
    Posted 2 years ago #

    Hi,
    Apologies if this has already been asked, but I couldn't find an answer in the forum.
    I want to be able to disable the post function so users registered below a certain level are not able to add a post.
    Also, is there a way remove the grey wordpress bar at the top of the page for all users except administrators?
    Thanks.

  2. adpawl
    Member
    Posted 2 years ago #

    Add this code to your functions.php file:

    if (!current_user_can('administrator')):
      show_admin_bar(false);
    endif;
  3. keesiemeijer
    moderator
    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic