Support » Fixing WordPress » How Can I Remove These Post Page Menu Options?

  • 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.


Viewing 6 replies - 1 through 6 (of 6 total)
  • 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.

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

    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. 🙂

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

    All the best


    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?

    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.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How Can I Remove These Post Page Menu Options?’ is closed to new replies.