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
It might be possible to use combinations of wp option get, jq (to extract only a specific sidebar) and wp option patch (to make a partial update to the widgets option) to achieve what you're after, but that's just a thought.
Hello,
Is it possible to import/add widgets to a specific sidebar from a file?
For example, when there is a need to copy over widgets for a specific sidebar only from one environment to another.
I can get a sidebar widgets info into a file using the following command:
wp widget list sidebar-ID --format=json > file-name.txt
But I can't see if it's possible to add widgets to a sidebar from a file.
Perhaps there is a different way of doing this? Is it at all possible?
I'd really appreciate any tips. Thank you!
The text was updated successfully, but these errors were encountered: