Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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