Opened 10 years ago
Closed 7 years ago
#38844 closed enhancement (fixed)
Post Type Objects and Menu Icons
| Reported by: | michael.ecklund | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.4 |
| Component: | Posts, Post Types | Version: | 3.0 |
| Severity: | normal | Keywords: | has-patch good-first-bug |
| Cc: | Focuses: | ui, administration |
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_iconparameter was introduced in [14014].Patch needs a refresh.