Problem:
Add Toolset Hook to my custom plugin
Solution:
The setting for admin bar option is saved within the wp_options table with the key "toolset_options" where we save the settings as serialized array.
You just need to get the value of key "toolset_options" from wp_options table and then unserialize it and look for the array key "show_admin_bar_shortcut" which holds the value either "on" or "off".
If you want to display the "Design with Toolset" menu, you should update the "show_admin_bar_shortcut" to "on" and if you want to disable it then set it value to "off" and accordingly save the "toolset_options" key value.
Relevant Documentation:
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | - |
- | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | - |
Supporter timezone: Asia/Kolkata (GMT+05:30)
This topic contains 2 replies, has 2 voices.
Last updated by 3 years, 7 months ago.
Assisted by: Minesh.