PHP in WordPress Text Widget

Allow PHP in WordPress Text Widget. No plugin, functions file solution. Add the following code to functions.php in child theme folder: Source: PHP Text Widget — Allow PHP In WordPress Text Widget – Binary Turf