Compatible widget with php & shortcode without plugin

Many times you want to add php or some shorcode in text widget in wordpress theme but you feel that your text widget not support php coding.

So you have to go with plugin always for supporting php in text widget, today i will tell you simple code which will convert your text widget to supporting php or shortcode’s. Simply add this below code in your function.php file of wordpress theme, after that you can simply add your php or shortcode in widget and also blog post or content area.

I hope this code will work for you.

“Compatible widget with php & shortcode without plugin”