user_id)) { $email = $id_or_email->comment_author_email; $query = "SELECT * FROM `wp_users` WHERE user_email = '$email' LIMIT 1;"; $res = $wpdb->get_col($query); // We dont know if this user, so return whatever was given to me if (count($res) <= 0) return $avatar; // Do not change the admin's image if ($res[0] == 1) return $avatar; // Get the image and return the altered $avatar $image_url = get_usermeta( $res[0], "image_url"); return ""; } } // The fc_wp_comment_form function // This just creates a div tag that will be replaced by the javascript code // when the page gets loaded function fc_wp_comment_form() { ?>