You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Background: We have a network of sites that did some crazy things in the past and now have hundreds of inactive sidebars each filled with a dozen or more widgets.
Desired functionality: We would like to remove all widgets in inactive sidebars via cli. I considered writing a custom cli to do this, but I thought that this might be a common enough problem to warrant adding to the wp widget or wp sidebar commands.
Questions:
Is this something that would be worth adding?
How should this be added?
Possible solutions: (please adjust as needed)
$ wp widget reset (wp sidebar list --filter=inactive ) or
$ wp widget reset (wp sidebar list --inactive ) or
$ wp widget reset --inactive or
$ wp widget reset --all-inactive
The text was updated successfully, but these errors were encountered:
Background: We have a network of sites that did some crazy things in the past and now have hundreds of inactive sidebars each filled with a dozen or more widgets.
Desired functionality: We would like to remove all widgets in inactive sidebars via cli. I considered writing a custom cli to do this, but I thought that this might be a common enough problem to warrant adding to the wp widget or wp sidebar commands.
Questions:
Is this something that would be worth adding?
How should this be added?
Possible solutions: (please adjust as needed)
$ wp widget reset (wp sidebar list --filter=inactive )
or
$ wp widget reset (wp sidebar list --inactive )
or
$ wp widget reset --inactive
or
$ wp widget reset --all-inactive
The text was updated successfully, but these errors were encountered: