[wp-trac] [WordPress Trac] #38844: Post Type Objects and Menu Icons

WordPress Trac noreply at wordpress.org
Thu Nov 17 23:07:04 UTC 2016


#38844: Post Type Objects and Menu Icons
--------------------------------+-----------------------------
 Reporter:  michael.ecklund     |      Owner:
     Type:  enhancement         |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Posts, Post Types   |    Version:  4.6.1
 Severity:  normal              |   Keywords:
  Focuses:  ui, administration  |
--------------------------------+-----------------------------
 When using `get_post_type_object();` the core Post Types don't have a
 `menu_icon` available.

 '''For example:'''

 {{{

 $page_object = get_post_type_object( 'page' );

 echo $page_object->menu_icon;

 }}}

 When executing the above code, I would expect that to output the same icon
 used in the administration menu on the left. This goes for all core Post
 Types.

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


More information about the wp-trac mailing list