/ Published in: PHP

Can now use the class as a styler
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<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 " : '' ; ?>">
Comments
