Created
October 1, 2025 12:36
-
-
Save plugin-republic/d0e61a6c3643224bfd0b806ed892025a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| <?php | |
| /** | |
| * Hook: woocommerce_product_get_rating_html. | |
| * Modify the HTML for the product rating. | |
| */ | |
| function plugin_republic_product_get_rating_html( $html, $rating, $count ) { | |
| // Modify the $html here | |
| return $html; | |
| } | |
| add_filter( 'woocommerce_product_get_rating_html', 'plugin_republic_product_get_rating_html', 10, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment