Skip to content

Commit a2d5737

Browse files
committed
Add missing command to readme
1 parent 6f04d7e commit a2d5737

2 files changed

Lines changed: 58 additions & 0 deletions

File tree

README.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,62 @@ A [sidebar](https://developer.wordpress.org/themes/functionality/sidebars/) is a
287287

288288

289289

290+
### wp sidebar exists
291+
292+
Check if a sidebar exists.
293+
294+
~~~
295+
wp sidebar exists <id>
296+
~~~
297+
298+
**OPTIONS**
299+
300+
<id>
301+
The sidebar ID.
302+
303+
**EXAMPLES**
304+
305+
$ wp sidebar exists sidebar-1
306+
$ wp sidebar exists wp_inactive_widgets && echo "exists"
307+
308+
309+
310+
### wp sidebar get
311+
312+
Get details about a specific sidebar.
313+
314+
~~~
315+
wp sidebar get <id> [--fields=<fields>] [--format=<format>]
316+
~~~
317+
318+
**OPTIONS**
319+
320+
<id>
321+
The sidebar ID.
322+
323+
[--fields=<fields>]
324+
Limit the output to specific object fields.
325+
326+
[--format=<format>]
327+
Render output in a particular format.
328+
---
329+
default: table
330+
options:
331+
- table
332+
- csv
333+
- json
334+
- ids
335+
- count
336+
- yaml
337+
---
338+
339+
**EXAMPLES**
340+
341+
$ wp sidebar get sidebar-1
342+
$ wp sidebar get wp_inactive_widgets --format=json
343+
344+
345+
290346
### wp sidebar list
291347

292348
Lists registered sidebars.

composer.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@
4343
"widget reset",
4444
"widget update",
4545
"sidebar",
46+
"sidebar exists",
47+
"sidebar get",
4648
"sidebar list"
4749
]
4850
},

0 commit comments

Comments
 (0)