PHP driven registration of the Widgets in #WordPress can be quite confusing. There is my way how to handle it:
Following code is an example how to use class Witgets
:
This code need to be call only once. Put your code to function.php
to after_switch_theme
action: