Created
June 3, 2022 14:49
-
-
Save rumspeed/58de4b24f92e04859f527bb3c099e17d to your computer and use it in GitHub Desktop.
Mercator - Add Site Settings Tab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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