0) && (count($member) >= $count) ){ break; } $email = trim($comment->comment_author_email); $author = trim($comment->comment_author); if(is_numeric($author)){ $author = $author." "; } if( (!array_key_exists($author, $member)) && ($email != "") ){ $member[$author] = $email; } } $_SESSION['at_you_comments_author'] = $member; } return $member; } function at_you_enqueue_script() { if(is_singular()){ wp_enqueue_style('at-you', AT_YOU_PLUGIN_URL.'at-you.min.css', false, false, 'screen'); wp_enqueue_script('jquery.atyou', AT_YOU_PLUGIN_URL.'jquery.atwho.min.js', false, false, true); wp_enqueue_script('at-you', AT_YOU_PLUGIN_URL.'at-you.min.js', false, false, true); wp_localize_script('at-you', 'atyou', array("array" => at_you_get_comments_author())); } } add_action('wp_enqueue_scripts', 'at_you_enqueue_script');