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()


Top ↑

Return Return

(array)


Top ↑

Source Source

File: packages/woocommerce-admin/src/Features/Navigation/Menu.php


			


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.