Skip to content

Is it possible to import/add widgets to a specific sidebar from a file? #59

@dashaluna

Description

@dashaluna

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!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions