Wp option delete (WP-CLI): verschil tussen versies
Naar navigatie springen
Naar zoeken springen
Regel 1: | Regel 1: | ||
Deletes an option. | Deletes an option. | ||
+ | |||
+ | <pre> | ||
+ | $ wp help option delete | ||
+ | |||
+ | NAME | ||
+ | |||
+ | wp option delete | ||
+ | |||
+ | DESCRIPTION | ||
+ | |||
+ | Deletes an option. | ||
+ | |||
+ | SYNOPSIS | ||
+ | |||
+ | wp option delete <key>... | ||
+ | |||
+ | OPTIONS | ||
+ | |||
+ | <key>... | ||
+ | Key for the option. | ||
+ | |||
+ | EXAMPLES | ||
+ | |||
+ | # Delete an option. | ||
+ | $ wp option delete my_option | ||
+ | Success: Deleted 'my_option' option. | ||
+ | |||
+ | # Delete multiple options. | ||
+ | $ wp option delete option_one option_two option_three | ||
+ | Success: Deleted 'option_one' option. | ||
+ | Success: Deleted 'option_two' option. | ||
+ | Warning: Could not delete 'option_three' option. Does it exist? | ||
+ | </pre> | ||
== Zie ook == | == Zie ook == |
Huidige versie van 29 jul 2022 om 07:26
Deletes an option.
$ wp help option delete NAME wp option delete DESCRIPTION Deletes an option. SYNOPSIS wp option delete <key>... OPTIONS <key>... Key for the option. EXAMPLES # Delete an option. $ wp option delete my_option Success: Deleted 'my_option' option. # Delete multiple options. $ wp option delete option_one option_two option_three Success: Deleted 'option_one' option. Success: Deleted 'option_two' option. Warning: Could not delete 'option_three' option. Does it exist?