Skip to content

Instantly share code, notes, and snippets.

@jazzsequence
Created August 4, 2014 20:09
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jazzsequence/f30b815e0a62c8425a45 to your computer and use it in GitHub Desktop.
add_menu_page - working
<?php
public function add_options_page() {
$this->options_page = add_submenu_page( self::$key, __( 'Edit Program Areas', 'nps' ), __( 'Edit Program Areas', 'nps' ), 'manage_options', 'edit-tags.php?taxonomy=career_center_interest' );
$this->options_page = add_submenu_page( self::$key, __( 'Program Areas Settings', 'nps' ), __( 'Options', 'nps' ), 'manage_options', self::$key, array( $this, 'admin_page_display' ) );
$this->options_page = add_menu_page( $this->title, __( 'Program Areas', 'nps' ), 'manage_options', self::$key, array( $this, 'admin_page_display' ), 'dashicons-star-filled', 12 );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment