Plugin Directory

WP Admin Links

Author: Colin Helvensteijn

WP Admin Links is a simple plugin that provides a widget and a template tag wpadminlinks() that display a dorp-down list with links to admin pages that the user has access to.

You can insert wp_admin_links() anywhere in your template, or you can add the included widget to your sidebar.

The template tag tages 4 arguments. Defaults:

wp_admin_links('Admin links', '', '', true)
  1. The first argument, if supplied and not empty, will be the default option. It will be disabled, but will be shown as the selected option on page load. Defaults to "Admin links".
  2. If supplied and not empty, this will be printed before the drop-down list.
  3. Printed after the drop-down list.
  4. Boolean. Whether or not to echo the drop-down list. If false, it will be returned as string.

Three links are shown for all users: Dashboard, Your Profile and Logout, They are in a section (<optgroup>) with your site name as title.

Other links are only shown if the user has sufficient rights to access that page. Sections are only shown if there are indeed links in them. For instance, an author will see Wite Post and Magange Posts, but not Write Page or Magange Pages. Editors will see the latter two. Admins see everything.

Tags:

Download

FYI

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(1 ratings)