Skip to content

Instantly share code, notes, and snippets.

@whatjackhasmade
Created June 5, 2017 16:57
Show Gist options
  • Save whatjackhasmade/3d75e318aa905aa5d55ebd16378fbad7 to your computer and use it in GitHub Desktop.
Save whatjackhasmade/3d75e318aa905aa5d55ebd16378fbad7 to your computer and use it in GitHub Desktop.
Include additional pages to wordpress admin dashboard
function register_my_custom_menu_page() {
add_menu_page( 'Page Title', 'Menu Title', 'manage_options', '../wp-content/themes/index.html', '', 'dashicons-book', 3 );
}
add_action( 'admin_menu', 'register_my_custom_menu_page' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment