0

I'm wondering if / how I might publish and unpublish specific media library items without deleting them, using plugins and/or theme code.

My use case is that I am planning a site where pages will dynamically show collections of media, based on custom fields set on the media items. We will also allow site visitors to upload media themselves, and we want a screening step for an editor to publish media items before they go live on the site.

I have come across the Media Library Assistant plugin, and it looks as though this might be achieved by setting custom fields to stand in for something like "status" = "published" or "draft".

However, is there another approach that is more clear to editors, similar to setting status on pages and posts?

4
  • use wordpress rest api
    – shadi
    Nov 10 '21 at 19:23
  • @shadi Thanks. Can you provide more detail on how to go about that approach?
    – Mike Eng
    Nov 10 '21 at 19:24
  • Do you want to achieve this through js or php?
    – shadi
    Nov 10 '21 at 19:50
  • @shadi I would imagine php would be a bit better performing, but whichever is more sensible for this use case.
    – Mike Eng
    Nov 10 '21 at 22:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.