Wp option delete (WP-CLI): verschil tussen versies

Uit De Vliegende Brigade
Naar navigatie springen Naar zoeken springen
(Nieuwe pagina aangemaakt met '== Zie ook == * wp option * wp option add * wp option get...')
 
 
(Een tussenliggende versie door dezelfde gebruiker niet weergegeven)
Regel 1: Regel 1:
 +
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 08: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?

Zie ook