How to add Custom Fields to Settings in Widget Options for all Registered Widgets?

I want to add input box in the custom form when we click for Widget Settings.
Really like to have this additional text box in all widgets be Custom Made or the default ones.
I’ll be needing help in adding new configurable inputbox in WordPress widget for all widget registered with Theme.

Your inputs/suggestions awaited,
Thanks.

2 Answers
2

You’d want too look into the following actions and filters:

  • in_widget_form – To add stuff to an existing form.
  • widget_update_callback – To save the content of your new form.
  • widget_display_callback – To add output to the existing output.

With a bit of searching in the forums and on Google you’ll find lots of help, but I found this page quite useful to get started myself.

Leave a Comment