Wp sidebar list (WP-CLI)
Naar navigatie springen
Naar zoeken springen
$ 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. | +---------------------+---------------------+----------------------------------------------------------------------------+