Custom Go to WP Admin Button URL

In my workflow, going to WP > Plugins > Installed Plugins page on my MainWP Dashboard site is something that I need often. So I figured to customize the Go to WP Admin button so I get directly there:

I use the following filter to change the button URL:

add_filter( 'mainwp_go_back_wpadmin_link', 'mainwp_go_back_wpadmin_link', 10, 1);
function mainwp_go_back_wpadmin_link( $input ) {
	$input['url'] = admin_url( 'plugins.php' );
	return $input;
}

To set some other custom location, it’s only required to update the $input['url'] = admin_url( 'plugins.php' ); argument.

4 Likes