wc_no_products_found()WC 1.0

Handles the loop when no products were found/no product exist.

No Hooks.

Returns

null. Nothing (null).

Usage

wc_no_products_found();

wc_no_products_found() code WC 9.8.4

function wc_no_products_found() {
	if ( ! function_exists( 'wc_print_notice' ) ) {
		// wc_print_notice() is used in our default template, so this likely means this function was called out of
		// context. We include the notice functions here to avoid a fatal error.
		wc_doing_it_wrong(
			__FUNCTION__,
			'Function should only be used during frontend requests.',
			'9.8.0'
		);
		return;
	}

	wc_get_template( 'loop/no-products-found.php' );
}