File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
292348Lists registered sidebars.
Original file line number Diff line number Diff line change 4343 " widget reset" ,
4444 " widget update" ,
4545 " sidebar" ,
46+ " sidebar exists" ,
47+ " sidebar get" ,
4648 " sidebar list"
4749 ]
4850 },
You can’t perform that action at this time.
0 commit comments