שינוי הטקסט "אזל מהמלאי"

PHOTO EMBED

Tue May 18 2021 12:35:47 GMT+0000 (UTC)

Saved by @Shesek

add_filter( 'woocommerce_get_availability', 'wcs_custom_get_availability', 1, 2);
function wcs_custom_get_availability( $availability, $_product ) {
  
    // Change Out of Stock Text
    if ( ! $_product->is_in_stock() ) {
        $availability['availability'] = __('Sold Out', 'woocommerce');
    }
    return $availability;
}
content_copyCOPY

https://wordpress.org/support/topic/how-to-change-stock-status-out-of-stock-into-sold-out/