%wordpress I've created to tool to turn php functions into Wordpress widgets. I use the register_sidebar_widget function but it seems like wp_register_sidebar_widget would give me more options. Does anyone know if that is legal?
P.S. I also generate widgets in the new 2.8 format.
-
Legal? Sure. WordPress is GPL, you can do anything you like as long as you follow the requirements of the license.
gbennett : I meant legit I guess. Since my tool will be creating many widgets I want to make sure I'm using the "preferred", "supported", "least likely to break in future versions" way of building widgets. -
register_sidebar_widgetis deprecated--though it can still be used, but you could usewp_register_sidebar_widget. If you do useregister_sidebar_widgetmight want to bracket it in anif ( function_exists('register_sidebar_widget') )in case that function gets removed in subsequent versions.Also, there is a plugin, Otto's PHP Code Widget, that allows PHP code in a widget.
0 comments:
Post a Comment