Link Directly to WooCommerce Product Reviews

The jQuery snippet below allows you to link directly to the reviews section on a WooCommerce product page. You can add the snippet to your website by either modifying your theme code or using the WPCode plugin. Once you’ve added the snippet, simply add #tab-title-reviews to the end of any product URL (e.g.,

    let url = window.location.href;
    if (url.endsWith('#tab-title-reviews') && $('#tab-title-reviews').length) {
        setTimeout(function () {
            $('.wc-tabs > li').removeClass('active');
            $('.woocommerce-Tabs-panel').css('display', 'none');
            $('#tab-reviews').css('display', 'block');
        }, 10);