i've written a plugin which shortcodes can easily be used in every post and page. As this plugin can be useful in a sidebar as well i want to make the text widget usable for my shortcodes.
When i googled this i found out that i can use the add_filter() function to ensure that, but this is only possible if i have access to the theme's functions.php. But as i am the creator of the plugin and not of the theme, this is not usable for me.
Does anybody know how i can make a shortcode which is introduced with a plugin usable in the widgets section?
Thanks!
widgetsas same functionality asshortcode??? it also simple...Find Docs from herehttp://codex.wordpress.org/Widgets_API.. - Akshay Paghdarwidget... But you can try withadd_filter('widget_text', 'do_shortcode');in your plugin's main file... I haven't tested this is plugins. - Akshay Paghdar