9

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.

8

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;
}
1
  • 1
    also see filters install_plugins_tabs, install_plugins_nonmenu_tabs and install_plugins_table_api_args_{$tab} in file specified.
    – majick
    Jan 31 '17 at 4:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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