Timeline for How can I get $id variable in widget's form function?
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 6, 2019 at 12:00 | answer | added | Jungle Editor | timeline score: 0 | |
Mar 14, 2012 at 18:36 | history | edited | user13250 | CC BY-SA 3.0 |
added 157 characters in body
|
Mar 14, 2012 at 17:56 | history | edited | user13250 | CC BY-SA 3.0 |
added 1225 characters in body
|
Mar 14, 2012 at 17:19 | comment | added | user13250 | sorry, I'm a new guy here. Yes! I put this widget for example in 'my_sidebar'. In this widget's widget function I can just write something like: echo '$id'; and in my front-end I will see sidebar's id - 'my_sidebar'. but I need to use this $id variable in widget's form function, because I want to display in select box which widgets already have this 'my_sidebar'. | |
Mar 10, 2012 at 11:11 | comment | added | kaiser | Would you mind answering the question I asked ↑ here? Also: Please edit & improve your Q. So far there's a lot of confusion. :/ | |
Feb 20, 2012 at 23:04 | answer | added | kaiser | timeline score: 0 | |
Feb 20, 2012 at 22:53 | comment | added | kaiser | Just to make that shure: You need the sidebar ID/Name - where the Widget was placed in - inside your widget? | |
Feb 20, 2012 at 22:20 | answer | added | fuxia♦ | timeline score: 1 | |
Feb 20, 2012 at 20:48 | history | tweeted | twitter.com/#!/StackWordPress/status/171697806082449408 | ||
Feb 20, 2012 at 20:12 | history | asked | user13250 | CC BY-SA 3.0 |