
// Show fake star ratings after product title in WooCommerce

add_action('woocommerce_after_shop_loop_item_title', 'custom_fake_product_rating', 4);

function custom_fake_product_rating() {
    
    // Random ratings
    $ratings = array('4.7', '4.8', '4.9', '5.0');
    $rating = $ratings[array_rand($ratings)];
    
    echo '<div class="custom-product-rating">';
    
    // Stars
    echo '<span class="stars">★★★★★</span>';
    
    // Rating Text
    echo '<span class="rating-number">' . $rating . ' out of 5</span>';
    
    echo '</div>';
}<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://devilbelts.com/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://devilbelts.com/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://devilbelts.com/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://devilbelts.com/wp-sitemap-posts-product-1.xml</loc></sitemap><sitemap><loc>https://devilbelts.com/wp-sitemap-posts-ts_footer_block-1.xml</loc></sitemap><sitemap><loc>https://devilbelts.com/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://devilbelts.com/wp-sitemap-taxonomies-product_cat-1.xml</loc></sitemap><sitemap><loc>https://devilbelts.com/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
