Created
August 21, 2020 06:17
-
-
Save junenacpil29/12727452eb92436ee0a8f1a4a6994213 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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