Useful Snippets

Change “Sold Out” text with another text in WooCommerce with Filter

Pinterest LinkedIn Tumblr

Want to change “sold Out” text with another text, then this will solve your problem with WooCommerce Way. Please add this code to your theme functions.php. But please don’t forget to use a child theme

add_filter( 'woocommerce_get_availability_text', 'amc_change_out_of_stock_text', 10, 2 );
   function amc_change_out_of_stock_text( $availability, $product ){

    if ( ! $product->is_in_stock() ) {

      $availability = __( 'in de winkelmand', 'woocommerce' );


    return $availability;

Write A Comment