Allow PHP in WordPress default text widget

The default text widget in WordPress only supports HTML. You can extend the functionality of the text widget by making it possible to execute PHP.

Put this code in the functions.php of the theme you are using:

Always backup your functions.php before changing it!

0 0 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x