WP CLI: Download Missing Attachments
Downloads missing attachments from your attachments metadata from a remote server.
by Code for the People Ltd · github.com/cftp/wp-cli-download-missing-attachments · website
★ 14stars
2forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/cftp/wp-cli-download-missing-attachments/archive/refs/heads/master.zipReadme
Download Missing Attachments
This is for those situations where someone delivers you a database dump from a WordPress site, but you don't have access to the images and other user uploaded files.
This plugin adds a WP CLI command to download any files which are missing for attachments.
Examples
wp remote-attachments get --remote-url-base=http://www.example.com/wp-content/uploads/ --generate-thumbs
wp remote-attachments get --remote-url-base=http://www.example.com/files/