Opened 7 years ago
Closed 4 years ago
#38844 closed enhancement (fixed)
Post Type Objects and Menu Icons
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 5.4 | Priority: | normal |
Severity: | normal | Version: | 3.0 |
Component: | Posts, Post Types | Keywords: | has-patch good-first-bug |
Focuses: | ui, administration | Cc: |
Description
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.
Attachments (3)
Change History (10)
Note: See
TracTickets for help on using
tickets.
The
menu_icon
parameter was introduced in [14014].Patch needs a refresh.