Safe Media Delete WordPress Plugin
- Download zip and install like other WordPress plugin
- https://example.com/wp-json/assignment/v1/attachment/id
- https://example.com/wp-json/assignment/v1/deleteattachment/id
id is the attachment ID.
- Got to plugin root directory and run the following command
phpunit
Install PHPUnit The readme file in the Github repository for PHPUnit has the instructions on how to do this. https://github.com/sebastianbergmann/phpunit#installation
Simply follow the installation instructions on the Github page and then proceed to the next step below.
If you run into any issues installing PHPUnit, leave a comment below and I will do my best to help you.
Install WP-CLI WP-CLI is also exceptionally simple to install, and you can find the install instructions here.http://wp-cli.org/#install