Skip to content

Instantly share code, notes, and snippets.

@thaboklass
Created June 17, 2021 11:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thaboklass/846ae9a90265096abb19c9316d68512a to your computer and use it in GitHub Desktop.
Save thaboklass/846ae9a90265096abb19c9316d68512a to your computer and use it in GitHub Desktop.
<?php
/**
* Adds 'RobberBaron.TV' menu item
*
* Adds the 'Settings' menu titled 'Ethereum Settings'
* as a top level menu item in the dashboard.
*
* @param none
* @return none
*/
public function robber_baron_tv_add_menu_page() {
// Introduces a top-level menu page
add_menu_page(
'RobberBaron.TV Configuration', // The text that is displayed in the browser title bar
__('RobberBaron.TV'), // The text that is used for the top-level menu
'manage_options', // The user capability to access this menu
'robber-baron-tv-configuration', // The name of the menu slug that accesses this menu item
array($this, 'robber_baron_tv_configuration_display'), // The name of the function used to display the page content
'');
} // end of function robber_baron_tv_add_menu_page
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment