Skip to content

tareq1988/imdb-post-ratings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IMDB Post Rating

This is a simple yet another rating plugin.

Features

  1. Creates a table {wpprefix}_imdb_rating
  2. Using IMDB_Post_Ratings::init()->rating_input(); inside a post, provides a 10 star rating. Change the number using the filter ip_base_rating. Cool huh?
  3. You can give a rating, also then can remove the rating, give again, remove again, give again…

Functions

  1. IMDB_Post_Ratings::init()->rating_input( $post_id ) Inserts the rating star bars.
  2. IMDB_Post_Ratings::init()->get_top_rated() - get top rated posts. Supports 3 parameters, post_type, limit, offset
  3. IMDB_Post_Ratings::init()->get_rating( $post_id ) - returns rating for single post.

Screenshot

screenshot

Author

Tareq Hasan

About

A post rating plugin that acts like IMDB post rating

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages