This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

WP Admin Buttons



  • Widget
  • Shortcode – for the parameters see the Other Notes section.
  • Custom Colors – set your favorite colors.

Shortcode and Function Parameters

The following parameters can be used for the shortcode or the PHP function of the plugin, printWPAdminButton()

  • href – the link url.

    [wp_admin_button href=”http://my-download-url/”]

    ‘http://my-download-url/’) ); ?>

  • label – the text label shown in the button.

    [wp_admin_button label=”Get” href=”http://my-download-url/”]

    ‘Get’, ‘href’ => ‘http://my-download-url/’ ) ); ?>

  • size – the button size. This argument accepts either large, medium, small.

    [wp_admin_button size=”large” href=”http://my-download-url/”]

    ‘large’, ‘href’ => ‘http://my-download-url/’ ) ); ?>

  • type – the button type. This argument accepts either button-primary, or buton-secondary.

    [wp_admin_button type=”button-secondary” href=”http://my-download-url/”]

    ‘button-secondary’, ‘href’ => ‘http://my-download-url/’ ) ); ?>

The follwoing color arguments can override the defult colors.

  • label_color – the label text color.
  • background_color – the button background color.
  • border_color – the button border color.

    [wp_admin_button label_color=”#ccc” background_color=”transparent” href=”http://my-download-url/”]

    ‘background_color’ => ‘transparent’,
    ‘href’ => ‘http://my-download-url/’,

The following additional HTML tag attributes can be set.

  • title – the title attribute.
  • class – the class attribute.
  • style – the inline style attribute.
  • target – the target attribute.
  • rel – the rel attribute.

    [wp_admin_button title=”Get the file now!” class=”my-custom-class-selector” “style=”text-align:center;” target=”_blank” rel=”nofollow” href=”http://my-download-url/”]

    ‘title’ => ‘Get the file now!’,
    ‘class’ => ‘my-custom-class-selector’,
    ‘style’ => ‘text-align:center’,
    ‘target’ => ‘_blank’,
    ‘href’ => ‘http://my-download-url/’,


  • Widget Form
  • Front-end



  1. Upload wp-admin-buttons.php and other files compressed in the zip folder to the /wp-content/plugins/ directory.,
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.


There are no reviews for this plugin.

Contributors & Developers

“WP Admin Buttons” is open source software. The following people have contributed to this plugin.


Translate “WP Admin Buttons” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.


1.0.2 – 2015/02/01

  • Fixed field title labels of the widget form.

1.0.1 – 2015/01/31

  • Fixed a misspelled function name.

1.0.0 – 2015/01/31

  • Chagned the version for release.


  • Fixed a compatibility issue with third-party plugins.


  • Added the ability to restore the previous color when the mouse cursor goes out the button.


  • Added custom mouse hover color fields.


  • Added a description field in the widget form.


  • Fixed some small bugs.

0.0.1 – 2015/01/27

  • Released beta.