Proxy images on a local development WordPress site from a remote server.
- Add the package as a Development dependency.
composer require --dev ndigitals/wp-local-media-proxy.
- Download the main plugin file,
wp-local-media-proxy.phpto your local machine. - Upload the main plugin file to the
wp-content/mu-plugins/directory on your site.
You will need to define the constant LOCALDEV_USE_REMOTE_MEDIA_URL either in your wp-config.php file or in your .env file when using the PHP dotenv package.