Add PHP and Shortcodes in Widgets in WordPress
Yes you can use PHP and shortcodes in widgets in WordPress. I’ve tried both of these and they work well. 1 – Use shortcodes in widgets without a plugin. 2 – Execute PHP code in widgets without a plugin.