Skip to content

Instantly share code, notes, and snippets.

@junenacpil29
Created August 21, 2020 06:17
Show Gist options
  • Save junenacpil29/12727452eb92436ee0a8f1a4a6994213 to your computer and use it in GitHub Desktop.
Save junenacpil29/12727452eb92436ee0a8f1a4a6994213 to your computer and use it in GitHub Desktop.
add_action('woocommerce_single_product_summary','vendor_feedback_product_page');
function vendor_feedback_product_page() {
$vendor_id = get_the_author_meta('ID');
$vendor_shop = urldecode( get_query_var( 'vendor_shop' ) );
if ( ! WCVendors_Pro::get_option( 'ratings_management_cap' ) )
echo WCVendors_Pro_Ratings_Controller::ratings_link( $vendor_id, true );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment