Title: Reintegrate Plugin
Last modified: January 22, 2021

---

# Reintegrate Plugin

 *  Resolved [netzgestaltung](https://wordpress.org/support/users/netzgestaltung/)
 * (@netzgestaltung)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/reintegrate-plugin/)
 * Hi there,
 * i used to integrate your plugins shortcode function in my theme with
 *     ```
       // add own rating avg function for better displaying
       function myTheme_avg_rating($atts) {
         echo var_dump(function_exists('wpcr_avg_rating'));
         // bool (false)
         if ( !function_exists('wpcr_avg_rating') ) {
           return '';
         }
       ```
   
 * now you added it to the `WP_Post_Comment_Rating_Public` Object – how do i access
   it in my theme?
 * Br,
    tom

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

 *  Thread Starter [netzgestaltung](https://wordpress.org/support/users/netzgestaltung/)
 * (@netzgestaltung)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/reintegrate-plugin/#post-13941924)
 * i now found that this was only the “plugin exists” question, the rest of the 
   code only uses database entries that seem to not have changed (good).
 * i changed the occurances in my code:
 * before
    `function_exists('wpcr_avg_rating')`
 * after
    `class_exists('WP_Post_Comment_Rating')`
 * and now it looks working again.
    I will test it now with new ratings and orderby
   rating
    -  This reply was modified 5 years, 4 months ago by [netzgestaltung](https://wordpress.org/support/users/netzgestaltung/).
 *  Plugin Author [shoaib88](https://wordpress.org/support/users/shoaib88/)
 * (@shoaib88)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/reintegrate-plugin/#post-13943437)
 * Hello netzgestaltung,
    You are such a great person. Always found solution and
   help me alot.
 * If you found solution and works fine, than please mark this issue as solved.
 * Thanks
 *  Plugin Author [shoaib88](https://wordpress.org/support/users/shoaib88/)
 * (@shoaib88)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/reintegrate-plugin/#post-13970978)
 * I am glad you found your solution
    Thanks

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

The topic ‘Reintegrate Plugin’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-post-comment-rating_aec7b7.svg)
 * [WP Post Rating](https://wordpress.org/plugins/wp-post-comment-rating/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-post-comment-rating/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-post-comment-rating/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-post-comment-rating/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-post-comment-rating/reviews/)

## Tags

 * [Theme Integration](https://wordpress.org/support/topic-tag/theme-integration/)

 * 3 replies
 * 2 participants
 * Last reply from: [shoaib88](https://wordpress.org/support/users/shoaib88/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/reintegrate-plugin/#post-13970978)
 * Status: resolved