Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce reset subcommand for sidebar #3063

Closed
ernilambar opened this issue Jun 26, 2016 · 2 comments
Closed

Introduce reset subcommand for sidebar #3063

ernilambar opened this issue Jun 26, 2016 · 2 comments

Comments

@ernilambar
Copy link
Contributor

Proposal:

wp sidebar reset <sidebar-id>

  • Cleans up all widgets in the the given sidebar.
  • If sidebar ID is not passed, all registered sidebars will be reset.

Technically, reset means moving widgets from sidebar to Inactive Widgets.

@ernilambar
Copy link
Contributor Author

This idea comes from my helper tool which I frequently use in the development process.

  1. One is reset all sidebars at once.
  2. Add widget ( say Text widget ) to every registered sidebars. Widget title be like Test widget: %d. %d replaced by sidebar ID. This helps a lot in theme development.

@danielbachhuber
Copy link
Member

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants