Last active
July 7, 2017 07:20
-
-
Save wooexperte/f2f42ac5df653c409b617850c22ee3a3 to your computer and use it in GitHub Desktop.
WooCommerce - Text "Nicht vorrätig" anpassen
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
/* | |
* WooCommerce - Text "Nicht vorrätig" anpassen | |
* https://wooexperte.de/snippet/woocommerce-aehnliche-produkte-ausblenden/ | |
*/ | |
add_filter('woocommerce_get_availability_text', function($text, $product) { | |
if (!$product->is_in_stock()) { | |
$text = ' auf Anfrage lieferbar'; // Text anpassen | |
} | |
return $text; | |
}, 10, 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment