[wp-hackers] wordpress widget API

kuldeep dhaka kuldeepdhaka9 at gmail.com
Sat Oct 6 03:25:45 UTC 2012

this is my first mail. :)
i have extended the wordpress widget api.
summary of API extension:*
when we create new sidebar widgets, we have to decide the values we have to
save in database to act upon while showing the widget at frontend.
but at designing, coding and taking input at back end is very fuzzy because
managing back end is very hard kind of thing.

i have modified the update & form function so programmer just only define
the definition of the inputs taken. and rest the routine library do it work.

as widget back end form didn't supported multi direction array [html form],
i also modified the name and id generator functions. to make them support.

if a programmer dont want to use the routine library he can write his own
function thereby maintaining backward compatibility with previous widgets.
if no definition is provided its show usual behaviors as before.

i made the update in the ABSPATH/wordpress-inlude/
widgets.php , file is attached

example plugin( twitterX ) is also attached[ this is the plugin which at
last made me think how to write such a routine , earlier i got the idea].

*i have written the code for better readability , so efficiency could be at
i have mentioned my name at places where i made the updates, to help better

[this is a re-mail'ed bcos no one replied]

*Kuldeep Singh Dhaka*
*SaKul* Web Developer
skype: kuldeep.dhaka
kuldeepdhaka9 at gmail.com
Programmer, Open Source, Web Developer, Entrepreneur, Animal Lover,
Student, Blogger, Reverse Engineer, Embedded System.

More information about the wp-hackers mailing list