Skip to content

Instantly share code, notes, and snippets.

@samazgor
Forked from hofmannsven/README.md
Created April 8, 2016 21:37
Show Gist options
  • Save samazgor/ef07e7e850b97bbbbb3eb4adb123f1b9 to your computer and use it in GitHub Desktop.
Save samazgor/ef07e7e850b97bbbbb3eb4adb123f1b9 to your computer and use it in GitHub Desktop.
Add WordPress admin menu pages with another Dashicon. (Note: This will require at least WordPress 3.8)
<?php
add_action( 'admin_menu', 'register_my_custom_menu_page' );
function register_my_custom_menu_page() {
// add_menu_page( $page_title, $menu_title, $capability, $menu_slug, $function, $icon_url, $position );
add_menu_page( 'Custom Menu Page Title', 'Custom Menu Page', 'manage_options', 'custom.php', '', 'dashicons-awards', 90 );
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment