This page demonstrates anonymous usage of my simple and effective Post Like System.
When anonymous users click the button (like):
- User IP address is stored as post meta
- Count is incremented +1 and stored as post meta
- Time of like is recorded
When registered users click the button (like):
- User ID is stored as post meta
- Count is incremented +1 and stored as post meta
- User’s like count is incremented +1 and stored as user meta
- Time of like is recorded
If the heart is clicked again, all of the user’s information is removed from post meta and the user’s like count is decremented -1.