Menu::get_post_type_items( string $post_type, array $menu_args = array() )
Get menu item templates for a given post type.
Description Description
Parameters Parameters
- $post_type
-
(Required) Post type to add.
- $menu_args
-
(Optional) Arguments merged with the returned menu items.
Default value: array()
Return Return
(array)
Source Source
File: packages/woocommerce-admin/src/Features/Navigation/Menu.php