Return to Snippet

Revision: 34877
at October 29, 2010 11:35 by chendrix


Initial Code
<li class="<?php 
	  	$comment_author_ID = get_comment(get_comment_ID()) -> user_id; 
	  	$auth_ID = get_the_author_meta('ID');
	    	echo ($comment_author_ID == $auth_ID) ? " author " : "" ; 
	    	echo (is_super_admin($comment_author_ID)) ? " admin " : '' ; 
?>">

Initial URL


Initial Description
Can now use the class as a styler

Initial Title
Wordpress dynamically add Admin or Author class to comment

Initial Tags
wordpress

Initial Language
PHP