Last active
October 1, 2025 12:29
-
-
Save plugin-republic/67e39c4139cb6cd7c119f2bdece00826 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_sale_flash. | |
| * Update the HTML for the Sale! flash. | |
| */ | |
| function plugin_republic_sale_flash( $html, $post, $product ) { | |
| // Modify the $html here | |
| return $html; | |
| } | |
| add_filter( 'woocommerce_sale_flash', 'plugin_republic_sale_flash', 10, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment