• Maybe is a more a bash question, but how can I use wp-cli to deactivate all the search widgets on my website?

    Manually I can do:
    wp sidebar list –format=ids

    than for each sidebar I can see the widget name and id:
    ex: wp widget list sidebar-1

    than, knowing the widgets ID I can deactivate all the search widgets:
    wp widget deactivate search-1

    How can I do all this stuff with a single command?

    Thanks

  • The topic ‘wp-cli command for deactivate all Search widget’ is closed to new replies.