How to keep track of when a vote is cast?
The following lines of code both store the IP address and time of vote, // $ip holds $_SERVER[‘REMOTE_ADDR’] $voted_IP[$ip] = time(); // Save IP and increase votes count update_post_meta($post_id, “voted_IP”, $voted_IP); The time a vote is cast is already being stored for you in the post_meta table for the given post the person is voting … Read more