Support » Developing with WordPress » WP-CLI daily automated script that registers PDFs in Media Library

  • I just want to know if this is possible or not (if it is, I’ll likely hire a developer to implement it): I have an automated daily script that will upload PDFs to the ‘/wp-content/uploads/’ folder of my WordPress website via FTP. However, those PDFs won’t get registered as attachment post-types in the WP Media Library (which I need). I don’t know much about WP-CLI, but I know you can run commands to register files into the WP Media Library. I need to find out if it’s possible for a developer to write a WP-CLI script that automatically checks on a daily basis if PDFs exist in the ‘/wp-content/uploads/’ folder which haven’t been registered yet, and then register them as attachments in the WP Media Library.

    Thoughts?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.