public function low_stock($product)
{
$subject = sprintf('[%s] %s', $this->get_blogname(), __('Product low in stock', 'woocommerce'));
/* translators: 1: product name 2: items in stock */
$message = sprintf(__('%1$s is low in stock. There are %2$d left.', 'woocommerce'), html_entity_decode(strip_tags($product->get_formatted_name()), ENT_QUOTES, get_bloginfo('charset')), html_entity_decode(strip_tags($product->get_stock_quantity())));
wp_mail(apply_filters('woocommerce_email_recipient_low_stock', get_option('woocommerce_stock_email_recipient'), $product), apply_filters('woocommerce_email_subject_low_stock', $subject, $product), apply_filters('woocommerce_email_content_low_stock', $message, $product), apply_filters('woocommerce_email_headers', '', 'low_stock', $product), apply_filters('woocommerce_email_attachments', array(), 'low_stock', $product));
}