mudzakkir toha

Important Things Related with WP Widget Development

WP Widget is a class. Has 3 important method/function to implement.

  • form function
  • update function
  • widget function

form Function

This function care to Your “widget settings”.  This function has an argument, the current instance of widget. Working at the back-end of WordPress.

update Function

This function will called when save button on widget form clicked. This function use AJAX to run the function. This function requires 2 argument, $new_instance and $old_instance.Working at the back-end of WordPress.

widget Function

This function will called at Front End. You should care Your widget logic at this function. Your widget settings will be used at this function of course to help your widget logic.

IP Address: 54.162.166.214
IP Number: 916629206
ISO Country Code: US
Country Name: UNITED STATES