PHP code execution in WordPress text widget

Starting directly on the issue 🙂 ; The below code snippet is for executing PHP code in the WordPress text widget. This snippet goes into ‘functions.php’ of a WordPress theme. The first thing we are doing is, add_filter() so that we specify from which widget we get the code/ data. Hence, add_filter( ‘widget_text’, < functionName […]