plugin_url() . '/assets/fonts/'; $inline_font = '@font-face { font-family: "star"; src: url("' . $font_path . 'star.eot"); src: url("' . $font_path . 'star.eot?#iefix") format("embedded-opentype"), url("' . $font_path . 'star.woff") format("woff"), url("' . $font_path . 'star.ttf") format("truetype"), url("' . $font_path . 'star.svg#star") format("svg"); font-weight: 400; font-style: normal; } @font-face { font-family: "WooCommerce"; src: url("' . $font_path . 'WooCommerce.eot"); src: url("' . $font_path . 'WooCommerce.eot?#iefix") format("embedded-opentype"), url("' . $font_path . 'WooCommerce.woff") format("woff"), url("' . $font_path . 'WooCommerce.ttf") format("truetype"), url("' . $font_path . 'WooCommerce.svg#star") format("svg"); font-weight: 400; font-style: normal; }'; wp_add_inline_style( 'aryx-woocommerce-style', $inline_font ); } add_action( 'wp_enqueue_scripts', 'aryx_wc_scripts' ); remove_action('woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_rating', 5); function aryx_wc_star_rating() { global $woocommerce, $product; $average = $product->get_average_rating(); echo '
'; } add_action('woocommerce_after_shop_loop_item_title', 'aryx_wc_star_rating', 5 );