[wp-trac] [WordPress Trac] #16015: show_in_menu has some menu selection issues

WordPress Trac wp-trac at lists.automattic.com
Wed Dec 29 16:13:17 UTC 2010


#16015: show_in_menu has some menu selection issues
------------------------------+-----------------------
 Reporter:  nacin             |       Owner:  duck_
     Type:  defect (bug)      |      Status:  assigned
 Priority:  normal            |   Milestone:  3.1
Component:  Post Types        |     Version:  3.1
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |
------------------------------+-----------------------

Comment (by nacin):

 Wrap me in an init:
 {{{
 add_action( 'init', 'ticket_16015' );
 function ticket_16015() {
         register_post_type( 'employees', array(
                         'labels' => array(
                                         'name' => __( 'Employees' ),
                                         'singular_name' => __( 'Employees'
 ),
                                 ),
                         'public' => true,
                         'show_ui' => true,
                         'show_in_menu' => 'users.php',
                         'has_archive' => true,
                         'rewrite' => true,
                         'supports' => array( 'title' ,'thumbnail',
 'excerpt', 'editor', 'custom-fields' ),
         ) );
 }
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16015#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list