I'm attempting to create my first ever widget and was hoping someone could explain the difference between $this
and $instance
used in the following widget form code.
<?php
public function form($instance){ ?>
<label for="<?php echo $this->get_field_id('title'); ?>">Title:
<input type="text"
name="<?php echo $this->get_field_name('title'); ?>"
value="<?php echo $instance['title']; ?>"
id="<?php echo $this->get_field_id('title'); ?>"
/>
</label>
<?php
}