Plugin Directory

WP Admin Links

Styling

The drop-down list is a <select> element with class="wp-admin-links". You can style it from your template's style.css file.

The widget has some minimal default styling: a 10px top and bottom margin, and an explicitly set width of 140px to fit inside most sidebars.

Adding or removing your own admin pages

You can add and remove links to admin pages yourself. Useful if you have plugins that create admin pages (or even whole sections). Or if you want to exclude some admin pages from the list.

Have a look inside custom.php, everything is explained in there, including some examples.

Todo

  • It might be neat for this plugin to have its own admin page, so adding and removing pages and sections no longer requires editing a PHP file.

Version History

  • 1.1
    • Added a removePage() function which can be used to remove default admin pages from the list if so desired
  • 1.0.1
    • First argument of the template tag now defaults to "Admin links"
  • 1.0
    • Initial release

License

Copyright (c) 2007 Colin Helvensteijn helvensteijn.com

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  • The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Download

FYI

Compatibility beta

Your Setup

Log in to vote.

The Consensus

No data

Average Rating

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