I'm writing a Wordpress plugin. The plugin should allow every user to rate posts (1 to 5 stars).
What actually works is to read the rating from storage and show the stars. So there are five <a>
links after every post, indicating the ranking by different colours.
The stars are linked because I want to let the visitor rate my post by clicking on one of the stars.
My question is now, how can I prepare my plugin file to receive the link, (save the rating into storage), and sending the user back to the article page. I other words...
How can I run a plugin function if the user follows a link?