Skip to content

Instantly share code, notes, and snippets.

@josephabrahams
Last active March 30, 2022 08:30
Show Gist options
  • Save josephabrahams/315ed2d941ba83235a200a671bccf333 to your computer and use it in GitHub Desktop.
Save josephabrahams/315ed2d941ba83235a200a671bccf333 to your computer and use it in GitHub Desktop.
Get WordPress Salts in Env format
#!/bin/sh
curl -s https://api.wordpress.org/secret-key/1.1/salt | sed "s/^define('\(.*\)',\ *'\(.*\)');$/\1='\2'/g"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment