PHP Widgets
Sometimes it may be necessary to run an advanced query in a widget area. Many, many WordPress plugins use a similar process to execute the functionality of the plugin.
This is a very advanced feature. Used maliciously; it could cause damage to your website.
It is HIGHLY recommended you trust all users who have access to the admin widget area before enabling this option.
Visit the plugin settings page -> General tab. Click the checkbox to enable “PHP Widgets”.
This will create a new widget on the admin Widgets page.
Drag this new widget to any available widget area; and you can insert your normal text, html or php code.
The PHP Widget will be processed when it is viewed from the front end of the website.
Going Further
This is an extremely dumbed down example. PHP Widgets can be used for a vast number of additional features. Scripts can also be included in PHP Widgets. This means any snippets from Facebool, Twitter or any other online API can be used in PHP Widgets.
Let Us Know
We would love to hear what you have done with your PHP Widgets! Use the comment section below to share your experience.