Skip to content

Latest commit

 

History

History
31 lines (16 loc) · 616 Bytes

README.md

File metadata and controls

31 lines (16 loc) · 616 Bytes

WP-CLI Unsplash Command

Download and import images from Unsplash into your Media Library. Useful for generating demo data.

Usage

Basic usage, which will import 10 images:

wp unsplash

count=<number>

Import 100 images:

wp unsplash --count=100

media_date=<yyyy-mm-dd|random>

Import images with a specific attachment date:

wp unsplash --media_date=2016-01-25

Import images with random attachment dates:

wp unsplash --media_date=random

media_dimensions=<dimensions>

Import images with specific dimensions:

wp unsplash --media_dimensions=1080x720