Last active
August 10, 2023 20:10
-
-
Save webdados/0ebf17d548ddfce84a4c03878981a4c7 to your computer and use it in GitHub Desktop.
Change "available on backorder" WooCommerce text
This file contains 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_get_availability', 'my_woocommerce_get_availability' ); | |
function my_woocommerce_get_availability( $availability ) { | |
if ( $availability['class'] == 'available-on-backorder' ) { | |
$availability['availability'] = 'Your text here'; | |
} | |
return $availability; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
/👍