Last active
October 30, 2023 07:38
-
-
Save SirDarcanos/3accbd0c31137d8c966a714ea32627e9 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 | |
add_filter( 'woocommerce_email_subject_low_stock', 'wc_custom_low_stock_subject', 20, 2 ); | |
function wc_custom_low_stock_subject( $subject, $product ) { | |
return str_replace( 'Product', $product->get_name(), $subject ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment