brasofilo

WPSE_58094

Jul 10th, 2012
76
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. add_filter( 'the_content', 'wpse_58094_the_content_filter', 20 );
  2. function wpse_58094_the_content_filter( $content )
  3. {
  4.     global $template;
  5.     $templ =  '<strong style="font-size:2em">Current Template Theme File = ' . basename( $template ) . '</strong>';
  6.  
  7.     if( !is_admin() )
  8.         $content = sprintf( $templ.'%s', $content );
  9.        
  10.     return $content;
  11. }
RAW Paste Data