How to add a custom-post-type post within another custom-post-type post edit screen using AJAX?

For your my_ajax_admin_add_track() function, grab the form field data from the $_POST array, populate the required data in an array to call wp_insert_post(), then call wp_insert_post() passing it the post data. It should return the new post ID number if successful.

tech