Skip to content

Instantly share code, notes, and snippets.

@rumspeed
Created June 3, 2022 14:49
Show Gist options
  • Save rumspeed/58de4b24f92e04859f527bb3c099e17d to your computer and use it in GitHub Desktop.
Save rumspeed/58de4b24f92e04859f527bb3c099e17d to your computer and use it in GitHub Desktop.
Mercator - Add Site Settings Tab
add_filter( 'network_edit_site_nav_links', 'mercator_add_settings_tab' );
function mercator_add_settings_tab( $tabs ) {
// add a new tab to the Edit Site area for Sites
$tabs['mercator-aliases-nav-link'] = array(
'label' => 'Aliases',
'url' => 'admin.php?action=mercator-aliases',
'cap' => 'manage_sites'
);
return $tabs;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment