Bring Unsplash directly into your media library.
AMF Unsplash uses the Asset Manager Framework to directly integrate Unsplash into your media library. This allows you to insert images anywhere they're used in WordPress, including Gutenberg, featured images, and the Customiser.
All the interesting functionality is provided by AMF, and this plugin essentially acts as a demo of how to implement the framework.
Install via Composer:
composer require humanmade/amf-unsplash
Alternatively, download this plugin and Asset Manager Framework, and activate both.
Unsplash doesn't allow bundling API keys in open source software unfortunately, so you'll need to register your own application.
(This isn't a great user experience, sorry!)
Once you have an API key, you can set it in Settings > Media.
Alternatively, you can set the AMFUNSPLASH_API_KEY
constant to your API key. This allows network admins or hosts to set the API key automatically.
Copyright 2020 Human Made. Licensed under the GPLv2 or later.