Some helper functions
-
Would be good to get some helper functions like:
1. get_post_likes ($post->ID), where post id is optional
This would get the total likes of that post.
2. user_likes_post (user_ID,$post->ID) again arguments could be optional
This returns true or false depending if (current) user likes the (current) post or not.
I do not mind writing those functions, if you would consider putting them into your plugin. I need them to set classes when rendering the page in a php template, as I am not using your shortcode or function call at all, but rather created my own including my own .js function, which I obviously have to add every time you are updating the plugin, but that is not a big deal for now.
Thanks,
Sascha
- The topic ‘Some helper functions’ is closed to new replies.