February 22, 2020
Add PHP in text widget
Description:
Add the code in your functions.php
Kind:
PHP
PHP:
// INSERT PHP INN TEXT WIDGETS
function php_execute($html){
if(strpos($html,"".$html);
$html=ob_get_contents();
ob_end_clean();
}
return $html;
}
add_filter('widget_text','php_execute',100);