Removing Images and Adsense from wp-print

To not have images or adsense show up on print friendly pages with wp-print.php plug-in for WordPress

After:
$content = str_replace(']]>', ']]>', $content);

insert:
$content = strip_tags($content, '<p><b><i><a><ul><li><pre><hr><blockquote>');

(I also inserted <br> into the list. The above are the tags you are allowing on the print formatted page.)

See here for more info.

Thanks yet again to lesterchan.net for not only the plug-in, but for the awesome support.



 
Google Search