Extra Quick Links on Network Sites Rows
Adds Plugins, Users and Settings links to each row's hover actions in Network Admin > Sites, so you can jump straight to the screen you need on that site.
Opens WPIDE on
Code
if ( ! is_multisite() ) {
return;
}
$wpide_links = array( // Label => wp-admin path.
'Plugins' => 'plugins.php',
'Users' => 'users.php',
'Settings' => 'options-general.php',
);
add_filter( 'manage_sites_action_links', function ( $actions, $blog_id ) use ( $wpide_links ) {
foreach ( $wpide_links as $label => $path ) {
$actions[ 'wpide_' . sanitize_key( $label ) ] = sprintf(
'<a href="%1$s">%2$s</a>',
esc_url( get_admin_url( $blog_id, $path ) ),
esc_html( $label )
);
}
return $actions;
}, 10, 2 );
Notes
Edit $wpide_links to add or remove screens; paths are relative to each site's wp-admin.
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.