Skip to content

Instantly share code, notes, and snippets.

@simonda86
Created December 2, 2013 11:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simonda86/7748026 to your computer and use it in GitHub Desktop.
Save simonda86/7748026 to your computer and use it in GitHub Desktop.
// Availability
$availability = $product->get_availability();
if ($availability['availability']) :
echo apply_filters( 'woocommerce_stock_html', '<p class="stock ' . esc_attr( $availability['class'] ) . '">' . esc_html( $availability['availability'] ) . '</p>', $availability['availability'] );
endif;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment