How to Automatically Fill Category wpdmcategory

Tagged: 

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #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)

You must be logged in to reply to this topic.