Forums
Forums / Fixing WordPress / widget ID ?
(@digitalnature)
16 years, 7 months ago
is there any way I can get the widget instance ID from inside the widget class?
I tried $id, but it outputs the widget container id (eg. “sidebar-1”)
found it.
$args[‘widget_id’]
(@stephenpickett)
16 years, 2 months ago
This seriously came in handy for “AJAX-ifying” my widget without breaking it’s ability to have multiple instances! Thanks!
The topic ‘widget ID ?’ is closed to new replies.