Updating old widgets to the newer API
-
There are a few plugins I use, as well as old projects, that used the old widget API calling on
register_sidebar_widget('NAME', array('ID', 'widget'))
and
register_widget_control('NAME', array('ID', 'control'))
I would like to convert them over to the newer widget API to allow their use across multiple widget areas. My various attempts in trying to follow the documentation and examples of newer code have resulted in just no widget showing up or a white screen of death. Does anyone have any pointers? Any links to good tutorials or examples of upgrading the code?
I’m happy to repay the help by contributing back to the community. If I get it down, I’ll bring some of the otherwise functional old plugins up to the new widget API and HTML validation (insufficient image tags are common in old plugins).
- The topic ‘Updating old widgets to the newer API’ is closed to new replies.