gdrts_core_visitor_rating

Developer Knowledge Level

This content is intended for WordPress developers, and it may require coding knowledge of WordPress, PHP, and JavaScript. Code examples provided here may contain errors or needs some additional coding. Make sure to test the code before using it on a live website!

This class is initialized for the current visitor (the user that is not logged in). Using the provided method you can check if the user voted for specific rating item, return the last vote, or all user votes for given item.

This class has the same methods as the gdrts_core_user_rating class, so check that class for more information:

How to use it?

To initialize the object from this class, it is recomended to use gdrts_get_current_user_rating() function.

0
0
619
Rate this reference

You are not allowed to rate this post.

Leave a Comment