I have a function that programmatically creates menu items in Wordpress. I am able to create menu items to individual pages and posts, but how can I create a menu item for a custom post type archive? Specifically, what are the arguments passed to wp_update_nav_menu_item()
?
$args = []; // what goes in this array?
wp_update_nav_menu_item($menuID, 0, $args);