You can get the instance ID with echo $this->id;
($this
is the class instance)
The only time you can’t get this id is from the form()
function, right after you just dropped the widget (here‘s the reason why)
You can get the instance ID with echo $this->id;
($this
is the class instance)
The only time you can’t get this id is from the form()
function, right after you just dropped the widget (here‘s the reason why)