How to Automatically Fill Category wpdmcategory


This topic contains 1 reply, has 2 voices, and was last updated by  Shafayet 5 months, 1 week ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #91760
    Yuri Vidal

    Hello Guys.
    I want to create a button that automatically opens the post-new.php with some items pre-filled.

    Currently, this works:

    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.


    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)

You must be logged in to reply to this topic.