How to Automatically Fill Category wpdmcategory

in Download Manager Free

Viewing 2 posts - 1 through 2 (of 2 total)
Jan 3, 2019 at 2:18 pm
#91760
Member
Yuri Vidal
OP

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.

Jan 9, 2019 at 5:19 am
#91990
Moderator
Shafayet
Staff

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.