imsas / wpdm-rest-api-docs

WordPress Download Manager REST API Documentation
Other
1 stars 0 forks source link

WPDM_REST_Packages_Controller get_items with categories filter only returns published items #1

Open ibr23 opened 4 years ago

ibr23 commented 4 years ago

When using GET packages with a filter on categories, only published packages are returned.

imsas commented 4 years ago

In most cases published posts are expected from get_items. But we could add a filter there to modify the query parameters. And using this filter you can retrieve posts from other post_status This hook will be available in the next version.