Difference between widget form code variables

$this is the widget object, an instance of the relevant widget class. It includes things like the widget ID and class identifiers which are required for the method that generate the input id and name attribute in the snippet

$instance is the array which includes the widget setting. The settings ae not stored as part of the object and therefor needs to be passed as a parameter

Leave a Comment