gdrts_ur_show_reviews_block()

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

Description

Function gdrts_ur_show_reviews_block is used to display users review block with the review form 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.

Examples

For current post/page:

<?php gdrts_ur_show_reviews_block(); ?>

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

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

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

0
0
101
Rate this reference

You are not allowed to rate this post.

Comments

Leave a Reply