Skip to content

Instantly share code, notes, and snippets.

@szepeviktor
Created June 13, 2025 16:36
Show Gist options
  • Save szepeviktor/9c213f46c42813a73c498a0532a1e8c8 to your computer and use it in GitHub Desktop.
Save szepeviktor/9c213f46c42813a73c498a0532a1e8c8 to your computer and use it in GitHub Desktop.
WP-CLI edit array option
wp option get auto_update_plugins --format=json \
| jq -c 'to_entries | map(select(.value != "wordpress-seo/wp-seo.php")) | from_entries' \
| wp option update auto_update_plugins --format=json
@szepeviktor
Copy link
Author

szepeviktor commented Jun 13, 2025

Check plugin existence.

wp option get auto_update_plugins --format=json | jq -r '.[]' | xargs -- ls -l

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment