Option to show/hide widget depending on is_home?

There are plugins that can do this like Widget Context or Widget Logic.

If you want your own solution then it’s pretty easy:

  • hook your function with the checkbox on in_widget_form
  • hook your widget update function widget_update_callback (update the widget option)
  • check if the option was checked using the widget_display_callback hook (return false if it is)

Post what you have so far if you need sample code. I’ve implemented a feature like this in one of my themes…