Hello Guys.
I want to create a button that automatically opens the post-new.php with some items pre-filled.
Currently, this works: mysite.com/wp-admin/post-new.php?post_type=wpdmpro&post_title=Sample
But i want it to pre-select a category as well.
In regular posts, i can use the &category=mycategory (with a helper function) to get this working, but i realized that WPDM’s category are not actual wordpress category, they are just a similar taxonomy wpdmcategory.
How can i autopopulate a new download post with a wpdmcategory pre-filled?
I guess i would have to alter the get_category_by_slug and wp_set_post_terms functions, but i dont know how.