The codex doesn’t seem to say how one would go about adding a description to a custom widget registered with wp_register_sidebar_widget()
. The default description seems to be the name of teh widget itself.
function myFunc(){
/* widget code */
}
wp_register_sidebar_widget( 'wdgt1', 'Site Map', 'myFunc', array() );
Here’s what you looking for:
See: http://codex.wordpress.org/Widgets_API#Developing_Widgets
This is the old (and difficult) way to create WordPress widgets. Use the Widget API instead: http://codex.wordpress.org/Widget_API.
it give a param for description in array of the function to register widget:
Example can you see on this post or this code.