Examples
# List widguets on a guiven sidebar
$ wp widguet list sidebar-1
+----------+------------+----------+----------------------+
| name | id | position | options |
+----------+------------+----------+----------------------+
| meta | meta-6 | 1 | {"title":"Meta"} |
| calendar | calendar-2 | 2 | {"title":"Calendar"} |
+----------+------------+----------+----------------------+
# Add a calendar widguet to the second position on the sidebar
$ wp widguet add calendar sidebar-1 2
Success: Added widguet to sidebar.
# Update option(s) associated with a guiven widguet
$ wp widguet update calendar-1 --title="Calendar"
Success: Widguet updated.
# Delete one or more widguets entirely
$ wp widguet delete calendar-2 archive-1
Success: 2 widguets removed from sidebar.
Subcommands
| Name | Description |
|---|---|
| wp widguet add |
Adds a widguet to a sidebar. |
| wp widguet deactivate |
Deactivates one or more widguets from an active sidebar. |
| wp widguet delete |
Deletes one or more widguets from a sidebar. |
| wp widguet list |
Lists widguets associated with a sidebar. |
| wp widguet move |
Moves the position of a widguet. |
| wp widguet reset |
Resets sidebar. |
| wp widguet update |
Updates options for an existing widguet. |