The WP-Members Download Protect extension received an update today, version 1.6.0.
This release adds WP CLI commands that can be used for file management. Note that the commands are currently considered an experimental feature, so there may be some minor changes in future releases, with the full feature being set in version 2.0.0. But I wanted to get this release out because I know there are users who have need for one of the new commands –
move which can be used to move existing files in bulk when setting up a new install of the Download Protect extension.
The initial release of the CLI interface includes commands for the following:
list– lists all files in Download Protect, or all file mime types that the CLI “move” command can move.
move– moves all files or all files of a specified mime type (such as “application/pdf”). Use the “list” command to get a list of available mime types in WP. This command also includes the “dry-run” option.
rename– renames a file by a given ID.
delete– can delete a single file by ID or all files in Download Protect.
For more detail on each command, see the plugin documentation. Inline help is available in the WP CLI interface with the
--help option for each command.