product_post_reviews( int $post_id )
Summary
Render reviews section for a product by post ID
Parameters
- $post_id
-
(int) (Required) The WordPress ID of the product post
Return
(string) The rendered product reviews
Source
File: src/BigCommerce/Functions/reviews.php
function product_post_reviews( $post_id ) { return do_shortcode( sprintf( '[%s post_id="%d"]', Shortcode_Product_Reviews::NAME, $post_id ) ); }