Created
October 1, 2025 12:57
-
-
Save plugin-republic/bcdf8e70c5e8762c12f13a8ad7e36ef3 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_get_stock_html. | |
| * Modify the HTML for the stock notice on the product page. | |
| */ | |
| function plugin_republic_get_stock_html( $html, $product ) { | |
| // Modify the $html here | |
| return $html; | |
| } | |
| add_filter( 'woocommerce_get_stock_html', 'plugin_republic_get_stock_html', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment