Title: What is the PHP Rating  function code?
Last modified: August 20, 2016

---

# What is the PHP Rating function code?

 *  Resolved [netigate](https://wordpress.org/support/users/netigate/)
 * (@netigate)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/what-is-the-php-rating-function-code/)
 * hi,
 * i would like to add a headline at the top of the rating stars in the footer. 
   since it is not possible in the plugin, my idea is to place a headline in the
   code and insert the rating stars manually, but what would be the php function
   for doing that?
 * [http://wordpress.org/extend/plugins/wp-social-seo-booster/](http://wordpress.org/extend/plugins/wp-social-seo-booster/)

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Plugin Author [Daniel](https://wordpress.org/support/users/dwaser71/)
 * (@dwaser71)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/what-is-the-php-rating-function-code/#post-3492189)
 * Hi,
 * The php function used to display the star ratings is:
 * wps_seo_booster_filter_content
 * I hope this helps.
 *  Thread Starter [netigate](https://wordpress.org/support/users/netigate/)
 * (@netigate)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/what-is-the-php-rating-function-code/#post-3492196)
 * unfortunately, it didnt help. in the admin settings i have to choose the placement.
   since i want to place it manually i deactivated “Enable Ratings on: Post” and
   put in your code. nothing shows up ;-(
 * usually there is an option for placements like “manually” which activates the
   function to put in the code.
 * is there another way of doing it?
 *  [3×7](https://wordpress.org/support/users/3x7/)
 * (@3x7)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/what-is-the-php-rating-function-code/#post-3492197)
 * same here, I left “enable rating” checked.
 * unchecked “on posts”
 * added
    `<?php if(function_exists('wps_seo_booster_filter_content')) { wps_seo_booster_filter_content;}?
   >`
 * -nothing shows up.
 * Is tehre any argument to add? like “postID” or something?
 * Cheers!
 *  Plugin Author [Daniel](https://wordpress.org/support/users/dwaser71/)
 * (@dwaser71)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/what-is-the-php-rating-function-code/#post-3492228)
 * I’ll work on that later this week and will then provide a shortcode and custom
   hook options for that.
 *  Thread Starter [netigate](https://wordpress.org/support/users/netigate/)
 * (@netigate)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/what-is-the-php-rating-function-code/#post-3492233)
 * are you sure that providing a shortcode will help to solve this? i mean, usually
   shortcode is placed within the pages/posts and not placed in the template files,
   isnt it? i got 300 posts by now, and the easiest way would be just to insert 
   the function directly into the theme.
 *  [3×7](https://wordpress.org/support/users/3x7/)
 * (@3x7)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/what-is-the-php-rating-function-code/#post-3492245)
 * you could still call the “do_shortcode” in the template…
 *  Plugin Author [Daniel](https://wordpress.org/support/users/dwaser71/)
 * (@dwaser71)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/what-is-the-php-rating-function-code/#post-3492252)
 * yes the shortcode will be the best way to go. As said by 3×7 you can call do_shortcode()
   within your template to display the rating stars.
 * Within the code for the shortcode, there I won’t add any checks if the ratings
   have been enabled for that specific post and just display the ratings if the 
   shortcode is used.
 * These checks are the reason at the moment, why placing the function in to the
   template doesn’t work straight out of the box.
 *  [3×7](https://wordpress.org/support/users/3x7/)
 * (@3x7)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/what-is-the-php-rating-function-code/#post-3492261)
 * perfect!
 * Just a thought…. maybe you could implement “thumbs up” voting.. and combine it
   with stars…
 * I know this haven’t been done before, but since google results only show stars
   you could do it like:
    1 thumb-up adds one all stars rating… 1 thumb-down adds
   1 star rating, or removes one all stars rating from average rating…
 * I just believe “thumbs up” is more welcome for voting…
    however it’s just an 
   idea, which could be a winwin…
 * Cheers!
 *  Thread Starter [netigate](https://wordpress.org/support/users/netigate/)
 * (@netigate)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/what-is-the-php-rating-function-code/#post-3492297)
 * hi, thanks for your shortcode idea. is there anything new about this or the release
   date?
 *  Plugin Author [Daniel](https://wordpress.org/support/users/dwaser71/)
 * (@dwaser71)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/what-is-the-php-rating-function-code/#post-3492298)
 * Right now I’m working on it and it will be released later this week.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘What is the PHP Rating function code?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-social-seo-booster_612e2d.svg)
 * [WP Social SEO Booster - Knowledge Graph Social Signals SEO](https://wordpress.org/plugins/wp-social-seo-booster/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-social-seo-booster/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-social-seo-booster/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-social-seo-booster/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-social-seo-booster/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-social-seo-booster/reviews/)

 * 10 replies
 * 3 participants
 * Last reply from: [Daniel](https://wordpress.org/support/users/dwaser71/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/what-is-the-php-rating-function-code/#post-3492298)
 * Status: resolved