Removing Product Description Text & Changing Default Stock Text

we design captivating websites with creative seo and branding strategies.

Removing Product Description Text & Changing Default Stock Text

To remove the description text: -> Go to Appearance > Editor. Copy/Past at the end of the Functions.php file. 

add_filter( ‘woocommerce_product_description_heading’, ‘remove_product_description_heading’ );
function remove_product_description_heading() {
return ”;
}

To change the in-stock default text: -> Go to Appearance > Editor. Copy/Past at the end of the Functions.php file. 

add_filter( ‘woocommerce_get_availability’, ‘custom_get_availability’, 1, 2);

function custom_get_availability( $availability, $_product ) {
global $product;
$stock = $product->get_total_stock();

if ( $_product->is_in_stock() ) $availability[‘availability’] = __($stock . ‘ In Stock‘, ‘woocommerce’);
if ( !$_product->is_in_stock() ) $availability[‘availability’] = __(‘SOLD OUT’, ‘woocommerce’);

return $availability;
}

Change In Stock words – remove bold text.