-
-
Save robincornett/4d394163d8205f8289ddcb7206245ca8 to your computer and use it in GitHub Desktop.
Reorder menus in the SuperSide Me navigation panel.
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
<?php | |
add_filter( 'supersideme_get_menus', 'prefix_get_supersideme_menus' ); | |
/** | |
* Replace and reorder the array of navigational menus in the SuperSide Me menu panel. | |
* @param $menus | |
* | |
* @return array | |
*/ | |
function prefix_get_supersideme_menus( $menus ) { | |
return array( | |
'footer' => 'Footer Navigation Menu', | |
'primary' => 'Primary Navigation Menu', | |
'supersideme' => 'SuperSide Me Navigation Menu', | |
'secondary' => 'Secondary Navigation Menu', | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment