• Hi everyone,

    I am building a custom role in WP with a user only having access to the Magazine portion.

    I have basically built the skeleton of the role but I am missing 2 menu subitems to complete this. I need the menu items “Tags” and “Magazine Categories” to appear in the custom role (right) but they are not showing.

    Left screenshot is how it should look like. Right screenshot is what I am getting in this custom role.

    https://ibb.co/sykDqWy

    Any thoughts?

    Thank you in advance!

Viewing 1 replies (of 1 total)
  • @nathansmacbook

    https://developer.www.ads-software.com/reference/functions/add_submenu_page/

    UM example:

    ../plugins/ultimate-member/includes/admin/core/class-admin-menu.php 
    
    151 add_submenu_page( $this->slug, __( 'Dashboard', 'ultimate-member' ), __( 'Dashboard', 'ultimate-member' ), 'manage_options', $this->slug, array( &$this, 'admin_page' ) );
    159 add_submenu_page( $this->slug, __( 'Forms', 'ultimate-member' ), __( 'Forms', 'ultimate-member' ), 'manage_options', 'edit.php?post_type=um_form', '' );
    161 add_submenu_page( $this->slug, __( 'User Roles', 'ultimate-member' ), __( 'User Roles', 'ultimate-member' ), 'manage_options', 'um_roles', array( &$this, 'um_roles_pages' ) );
    164 add_submenu_page( $this->slug, __( 'Member Directories', 'ultimate-member' ), __( 'Member Directories', 'ultimate-member' ), 'manage_options', 'edit.php?post_type=um_directory', '' );
    206 add_submenu_page( $this->slug, __( 'Extensions', 'ultimate-member' ), '<span style="color: #00B9EB">' .__( 'Extensions', 'ultimate-member' ) . '</span>', 'manage_options', $this->slug . '-extensions', array( &$this, 'admin_page' ) );
Viewing 1 replies (of 1 total)
  • The topic ‘How to see full Menu Items’ is closed to new replies.