Skip to content

Instantly share code, notes, and snippets.

@matthijs166
Created December 22, 2017 10:36
Show Gist options
  • Save matthijs166/796eea896d51794491db19998cb03edc to your computer and use it in GitHub Desktop.
Save matthijs166/796eea896d51794491db19998cb03edc to your computer and use it in GitHub Desktop.
wordpress admin page add of custom menu item in wp admin
//tournament setting page
function brackets_settings_page(){
echo "<h1>Bracket Admin Pannle</h1>";
}
function add_theme_menu_item(){
add_menu_page("Brackets", "Brackets", "manage_options", "theme-panel", "brackets_settings_page", null, 99);
}
add_action("admin_menu", "add_theme_menu_item");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment