is there any option to add gadget on dashboard using code ? let say when user install my dashboard plugin at that time i want to add all available gadget with plugin will auto added on dashboard .
Thanks,
MK
Yes, you could create code in your add-on that lists through all dashboards, and adds your gadget, but don't.
It's not a simple loop - your code will need to deal with
Additionally
I would not bother to do this at all. It's a lot of effort for no gain. I'd install the add-on and then stick an announcement banner up saying "hey, there's a great new gadget, please try it"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.