Skip to content

Instantly share code, notes, and snippets.

@bradleysa
Created April 22, 2022 08:28
Show Gist options
  • Save bradleysa/801d91fb3ce9704044cfbc7f96ab5ccc to your computer and use it in GitHub Desktop.
Save bradleysa/801d91fb3ce9704044cfbc7f96ab5ccc to your computer and use it in GitHub Desktop.
WC: Change "Out of stock" to "Sold Out" on Product Catalog
add_filter( 'astra_woo_shop_out_of_stock_string', 'out_of_stock_callback' );
function out_of_stock_callback( $title ) {
return 'Sold Out';
}
/** https://wpastra.com/docs/change-woocommerce-out-of-stock-text/ **/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment