Change WooCommerce Out of Stock text

Astra adds a text “Out Of Stock” for the WooCommerece products that have ‘Stock status’ as out of stock. Below is the screenshot of how the text displays in the front end on the product –

You can change this “Out Of Stock” text with the following filter.

Paste the following filter into child theme’s functions.php file.

/**
 * Change "Out Of Stock" text added on WooCommerce Product Grid.
 *
 * @return String
 */
function your_prefix_change_out_stock_string() {
	return __( 'Your Alternate Text', 'your-text-domain' );
}
add_filter( 'astra_woo_shop_out_of_stock_string', 'your_prefix_change_out_stock_string' );

Refer this doc for others methods on How to Add Custom PHP Code?

Not the solution you are looking for? Check other articles, or open a support ticket.