When an user searches for a plugin from the WP Admin’s Add Plugin area, I want to add a new tab(with a link to a page) next to the current tabs.

The location where I want the link is marked in the screenshot below.

Screenshot

Looked for it @ http://codex.wordpress.org/Adding_Administration_Menus but in vain.

Is it allowed by WP ?

Thanks in advance.

1
1

There is the filter: "views_plugin-install" (see here).

You can find it in /wp-admin/includes/class-wp-plugin-install-list-table.php (currently) at line 226:

$views = apply_filters( "views_{$this->screen->id}", $views );

Use it like:

add_filter( 'views_plugin-install', 'my_filter', 10, 1 );

function my_filter( $views ){
    //Do your stuff
    return $views;
}

Leave a Reply

Your email address will not be published. Required fields are marked *