[wp-trac] [WordPress Trac] #18850: hidden admin page

WordPress Trac noreply at wordpress.org
Mon Dec 10 04:05:04 UTC 2018


#18850: hidden admin page
----------------------------+----------------------
 Reporter:  ibotty          |       Owner:  (none)
     Type:  enhancement     |      Status:  closed
 Priority:  normal          |   Milestone:
Component:  Administration  |     Version:
 Severity:  normal          |  Resolution:  wontfix
 Keywords:                  |     Focuses:
----------------------------+----------------------
Changes (by chriscct7):

 * status:  new => closed
 * resolution:   => wontfix
 * milestone:  Awaiting Review =>


Comment:

 This is already possible as mentioned in
 [https://core.trac.wordpress.org/ticket/18850#comment:11 comment 11] or
 more easily just use add_submenu_page with a parent ID of `null` which is
 a method widely adopted at this point.

 Example:
 {{{#!php
 add_action( 'admin_menu', function() {
     add_submenu_page(
         null,
         __( 'Welcome', 'textdomain' ),
         __( 'Welcome', 'textdomain' ),
         'manage_options',
         'my-welcome',
         'prefix_render'
     );
 } );
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/18850#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list