Notifications
Clear all
Limited Support
Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed. We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.
22/05/2016 10:26 am
Hi lph
put this code in your current active theme's function.php file:
function wpdiscuz_display_php($comment){ $comment = preg_replace_callback('|\[php\](.*?)\[\/php\]|is', 'wpdiscuz_php_code', $comment); return $comment; } function wpdiscuz_php_code($match){ return '<br/><pre><p style="text-align:right;border-bottom:1px solid #ddd; padding:5px 2px; margin:0px; color:#ccc;">| PHP CODE |</p>'.str_replace(array('>', '<'),array('>','<'),$match[1]).'</pre><br/>'; } add_filter( 'comment_text', 'wpdiscuz_display_php' );