How to Automatically Fill Category wpdmcategory

Viewing 2 posts - 1 through 2 (of 2 total)
#91760

Yuri Vidal
Member

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.

#91990

Shafayet
Moderator

Hi,
For now you can prefill package settings only using default values add-ons:

WPDM Default Values

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘How to Automatically Fill Category wpdmcategory’ is closed to new replies.