[wp-trac] [WordPress Trac] #41820: CPTs are not showing by default on Appearances > Menus page

WordPress Trac noreply at wordpress.org
Thu Sep 7 05:16:14 UTC 2017


#41820: CPTs are not showing by default on Appearances > Menus page
----------------------------+-----------------------------
 Reporter:  mehul0810       |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  General         |    Version:  4.8.1
 Severity:  normal          |   Keywords:
  Focuses:  administration  |
----------------------------+-----------------------------
 I have noticed that with fresh WP instance adding CPTs using
 `register_post_type` and setting `public` to `true` doesn't show that CPT
 on Appearances > Menus page.
 Also, found that the CPT created is listed under `metaboxhidden_nav-menus`
 from function https://github.com/WordPress/WordPress/blob/master/wp-
 admin/includes/nav-menu.php#L163

 However, It should work with `public` set to `true` or `show_in_nav_menus`
 set to `true`. But its not showing when fresh install or Screen Options
 not set.

 '''Alternative Suggestion:''' We can overcome this issue by adding a
 filter here https://github.com/WordPress/WordPress/blob/master/wp-
 admin/includes/nav-menu.php#L169

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41820>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list