WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I don't know if my question is clear.this image might make it clear.

I want to add and remove some options in the circled section of the image.


share|improve this question
And what have you tried? (code) – its_me Jul 7 '12 at 15:56
up vote 2 down vote accepted

I believe you might be talking about adding plugin_action_links such as,

Settings | Deactivate | Delete | Visit Site

As seen on the Plugin management page for all plugins.

I was going to take an example from one of my plugins however here is an example that's much simpler to follow from Pippin via guest post at WPMods HERE and if you don't know Pippin, he's one to follow for all things Plugin Development.

function our_plugin_action_links($links, $file) {
    static $this_plugin;

    if (!$this_plugin) {
        $this_plugin = plugin_basename(__FILE__);

    // check to make sure we are on the correct plugin

    if ($file == $this_plugin) {

        // the anchor tag and href to the URL we want. For a "Settings" link, this needs to be the url of your settings page

        $settings_link = '<a href="' . get_bloginfo('wpurl') . '/wp-admin/admin.php?page=font-uploader.php">Settings</a>';

        // add the link to the list

        array_unshift($links, $settings_link);

    return $links;

add_filter('plugin_action_links', 'our_plugin_action_links', 10, 2);

Fairly self explanatory (see inline comments for a break down of whats occurring). You can also add more than one link if your plugin requires it.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.