Skip to content

Instantly share code, notes, and snippets.

@hlotvonen
Created May 21, 2013 23:15
Show Gist options
  • Save hlotvonen/5624043 to your computer and use it in GitHub Desktop.
Save hlotvonen/5624043 to your computer and use it in GitHub Desktop.
Add custom dashboard menu page for editing a page
// ****************************************************
// Add custom dashboard menu page for editing a page
// ****************************************************
add_action( 'admin_menu', 'register_my_custom_menu_page' );
function register_my_custom_menu_page(){
add_menu_page( 'Me ja In English osiot', 'Muokkaa Me ja In English osioita', 'edit_pages', 'post.php?post=13&action=edit', '', '', 15 );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment