WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WC_Emails::no_stock() WC 1.0

No stock notification email.

Это метод класса: WC_Emails

Возвращает

Null. Ничего.

Использование

$WC_Emails = new WC_Emails();
$var = $WC_Emails->no_stock( $product );
$product(WC_Product) (обязательный)
Product instance.

Код WC Emails::no stock: woocommerce/includes/class-wc-emails.php WC 3.8.1

<?php
public function no_stock( $product ) {
	if ( 'no' === get_option( 'woocommerce_notify_no_stock', 'yes' ) ) {
		return;
	}

	$subject = sprintf( '[%s] %s', $this->get_blogname(), __( 'Product out of stock', 'woocommerce' ) );
	/* translators: %s: product name */
	$message = sprintf( __( '%s is out of stock.', 'woocommerce' ), html_entity_decode( wp_strip_all_tags( $product->get_formatted_name() ), ENT_QUOTES, get_bloginfo( 'charset' ) ) );

	wp_mail(
		apply_filters( 'woocommerce_email_recipient_no_stock', get_option( 'woocommerce_stock_email_recipient' ), $product ),
		apply_filters( 'woocommerce_email_subject_no_stock', $subject, $product ),
		apply_filters( 'woocommerce_email_content_no_stock', $message, $product ),
		apply_filters( 'woocommerce_email_headers', '', 'no_stock', $product ),
		apply_filters( 'woocommerce_email_attachments', array(), 'no_stock', $product )
	);
}