Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Allow Adding/Updating Multiple Options at Once

Aperta
#230 11 commenti 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
php
Ambito
cli

Direzione di ricerca

Start by reviewing the linked wp-cli/wp-cli#2972 and wp-cli/entity-command#220 issues, then inspect the existing wp option update command entry point. Determine whether multiple key/value pairs or JSON should be supported and document the accepted input; done means the chosen form is implemented and its behavior is covered by tests.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

command:option command:option-update

I was just looking at https://github.com/wp-cli/wp-cli/issues/2972 and https://github.com/wp-cli/entity-command/issues/220 (regarding deleting multiple options), but I haven't seen anyone requesting what I'm looking for.

I'm wondering if it'd be possible to do something like this:

$ wp option update blogname "Random blog name" blogdescription "Some random blog description"

I'm not sure if this is the way it would actually be implemented – perhaps the options would need to be specified in JSON format instead, or something similar.

Perhaps this is already possible in some other way…if so, I hope someone can point me in the right direction as I can't find any documentation on this.

Lingua principale
PHP
Stelle
105
Fork
97
Merge medio
2h 1m
PR unite (30g)
12

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di wp-cli/entity-command

Tutte le issue di wp-cli/entity-command

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.