I've been learning how to create plugins after creating one with a admin page and user page that used options I wanted to create it again but make it a widget instead. Can anyone help me figure out where I need to register my widget and add the proper actions etc. I can write the functions to create the output and use the API to look up different hooks to a point but the actions, registering the widget and filters are confusing me. Can't figure out where I should put them in my plugin so they actually will show the widget allowing it to be dropped into a sidebar and then displayed . I just need some help figuring this out if anyone can take the time. Thanks in advance.
It's just a widget that will return the Latest Posts.
My failed attempt at widgetizing my plugin :(