Skip to content

Instantly share code, notes, and snippets.

@wpmark
Created January 6, 2015 20:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wpmark/0090bc2227560554b754 to your computer and use it in GitHub Desktop.
Save wpmark/0090bc2227560554b754 to your computer and use it in GitHub Desktop.
Alter the Options Framework Menu Name and Position
<?php
/**
* function wpmark_change_theme_options_menu_name()
* changes the name of the menu item of theme options framework
*/
function wpmark_change_theme_options_menu_name( $menu ) {
/* alter the options menu paramters */
$menu[ 'menu_title' ] = 'Site Options'; // set the menu title
$menu[ 'page_title' ] = 'Site Options'; // set the menus page title
$menu[ 'mode' ] = 'menu'; // make the menu a top level menu item
$menu[ 'position' ] = '81'; // make the menu item appear after settings
/* return our modified menu */
return $menu;
}
add_filter( 'optionsframework_menu', 'wpmark_change_theme_options_menu_name' );
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment