Wp sidebar list (WP-CLI): verschil tussen versies

Uit De Vliegende Brigade
Naar navigatie springen Naar zoeken springen
(Nieuwe pagina aangemaakt met '== Voorbeeld == <pre> wp sidebar list +---------------------+---------------------+----------------------------------------------------------------------------+ |...')
 
 
Regel 1: Regel 1:
 +
<pre>
 +
$ wp help sidebar list
 +
 +
NAME
 +
 +
  wp sidebar list
 +
 +
DESCRIPTION
 +
 +
  Lists registered sidebars.
 +
 +
SYNOPSIS
 +
 +
  wp sidebar list [--fields=<fields>] [--format=<format>]
 +
 +
OPTIONS
 +
 +
  [--fields=<fields>]
 +
    Limit the output to specific object fields.
 +
 +
  [--format=<format>]
 +
    Render output in a particular format.
 +
    ---
 +
    default: table
 +
    options:
 +
      - table
 +
      - csv
 +
      - json
 +
      - ids
 +
      - count
 +
      - yaml
 +
    ---
 +
 +
AVAILABLE FIELDS
 +
 +
  These fields will be displayed by default for each sidebar:
 +
 +
  * name
 +
  * id
 +
  * description
 +
 +
  These fields are optionally available:
 +
 +
  * class
 +
  * before_widget
 +
  * after_widget
 +
  * before_title
 +
  * after_title
 +
 +
EXAMPLES
 +
 +
    $ wp sidebar list --fields=name,id --format=csv
 +
    name,id
 +
    "Widget Area",sidebar-1
 +
    "Inactive Widgets",wp_inactive_widgets
 +
</pre>
 
== Voorbeeld ==
 
== Voorbeeld ==
  

Huidige versie van 27 aug 2022 om 18:05

$ wp help sidebar list

NAME

  wp sidebar list

DESCRIPTION

  Lists registered sidebars.

SYNOPSIS

  wp sidebar list [--fields=<fields>] [--format=<format>]

OPTIONS

  [--fields=<fields>]
    Limit the output to specific object fields.

  [--format=<format>]
    Render output in a particular format.
    ---
    default: table
    options:
      - table
      - csv
      - json
      - ids
      - count
      - yaml
    ---

AVAILABLE FIELDS

  These fields will be displayed by default for each sidebar:

  * name
  * id
  * description

  These fields are optionally available:

  * class
  * before_widget
  * after_widget
  * before_title
  * after_title

EXAMPLES

    $ wp sidebar list --fields=name,id --format=csv
    name,id
    "Widget Area",sidebar-1
    "Inactive Widgets",wp_inactive_widgets

Voorbeeld

wp sidebar list

+---------------------+---------------------+----------------------------------------------------------------------------+
| name                | id                  | description                                                                |
+---------------------+---------------------+----------------------------------------------------------------------------+
| Primary Widget Area | sidebar-1           |                                                                            |
| Header Widget Area  | mini-cart-widget    |                                                                            |
| Inactive Widgets    | wp_inactive_widgets | Drag widgets here to remove them from the sidebar but keep their settings. |
+---------------------+---------------------+----------------------------------------------------------------------------+

See also