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!

gdrts_ur_show_reviews_overall($post_id = 0, $post_type = '')


Function gdrts_ur_show_reviews_overall is used to display overall reviews block for current or custom post. The function can be called for a custom post by specifying the post ID and post type, or without these, and the plugin will try to get current post/page ID and type.


For current post/page:

<?php gdrts_ur_show_reviews_overall(); ?>

For custom post/page, provide $post_id and $post_type:

<?php gdrts_ur_show_reviews_overall($post_id, $post_type); ?>

This function can be called only for post types that are enabled for user reviews.

Rate this reference

You are not allowed to rate this post.

Leave a Comment