WordPress.org

Ready to get started?Download WordPress

Forums

How Can I Remove These Post Page Menu Options? (7 posts)

  1. vinnyo
    Member
    Posted 3 years ago #

    Hey anyone that can help would be great. I did this once before but can't seem to remember which file to go to in my WP files so I can edit these.

    I have members to my site and I don't want them seeing the menu/nav bar that tells how many articles have been published, posted, trashed and draft.

    Looks like this

    * All (4,507) | Published (3,937) | Drafts (188) |Pending (382) |Trash (242)

    I have checked so many files in the WP-admin files that I am going blind. I just need the location/name of the file I can go to do the edit on this.

    Just to be clear, I want to remove this from the users admin area and not the Admins admin area.

    Thanks
    Vince

  2. kgagne
    Member
    Posted 3 years ago #

    Whether your users see that information should depend on their role; I think contributors get only ""Unpublished" and "Pending Review".

    I wouldn't recommend directly editing wp-admin files, but given that this data is displayed when you're accessing edit.php, I'd recommend looking there, around line 275.

  3. vinnyo
    Member
    Posted 3 years ago #

    Thanks for the tips but there is no line 275 in the edit.php file. It does not go that far.
    Any ideas?

  4. kgagne
    Member
    Posted 3 years ago #

    Ah, sorry. I'm still running WordPress 3.0.5.

    In WordPress 3.1, delete lines 158–173 in file /wp-admin/includes/class-wp-posts-list-table.php.

    Again, I don't recommend this — it will remove the display of that data for all users, not just certain levels; it'll revert to its default behavior with the next WP update; and it could have other unforeseen consequences.

    But otherwise, it works great. :-)

  5. vinnyo
    Member
    Posted 3 years ago #

    OK well I will keep this post as a reference but thanks for the tip and quick response.

    All the best

    Vince

  6. vinnyo
    Member
    Posted 3 years ago #

    Just an update,

    I want to know if there is any way to remove the columns above but only in the users wp-admin area and keep it the same in the Admin wp-admin area.

    Hope that make sense?

  7. kgagne
    Member
    Posted 3 years ago #

    Putting the lines indicated above inside an if block, so they execute only if the user's level is that of an admin, might work.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.