How to run PHP in your widget area

Are you wondering how to run a php code in your widget area? The Default widget doesn’t have a capability to run or execute PHP code.

This tutorial I will teach you how to run or execute your PHP code in your widget without using any plugin,? we just only need our [highlight]functions.php[/highlight]

Simply copy and paste this code in your [highlight]functions.php.[/highlight]

Then you can go to your widget area. [highlight]Appearance > Widgets[/highlight] grab a text widget and enter some PHP code like the example below.

widget-area