Instantly share code, notes, and snippets.

View execute-php-wp-widget.txt
/**
*
* Executing PHP code in WordPress text widget
*
*/
function execute_php($html){
if(strpos($html,"<"."?php")!==false){
ob_start();
eval("?".">".$html);
View add-body-class-wp-posts-no-featured-image.txt