#!/bin/bash # Shared defaults, loaded before any --site NAME file. If you only ever post # to one WordPress instance, fill in USER/PASSWORD/SERVER here too and skip # --site entirely. If you post to more than one, leave those three blank # here and put them in per-site files instead (see README). EDITOR=vim TRANSFORM=('title' 'markdown') # empty or a subset of: 'title' 'markdown' USER="" # WP user to create the post PASSWORD="" # application password generated for your WP user SERVER="" # server hostname, optionally with subdirectories STATUS="draft" # one of publish,future,draft,pending,private CATEGORIES="" # comma separated integer IDs of categories TAGS="" # comma separated integer IDs of tags # USER_AGENT="Mozilla/5.0 (X11; Linux x86_64) wordpress-rest-curl/1.0" # uncomment to override; some hosts' DDoS/bot protection blocks curl's default UA