Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
WooCommerce - Text "Nicht vorrätig" anpassen
/*
* 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