Automattic\WooCommerce\EmailEditor\Integrations\WooCommerce\Renderer\Blocks

Product_Collection::render_no_results_messageprivateWC 1.0

Render a no results message.

Method of the class: Product_Collection{}

No Hooks.

Returns

String.

Usage

// private - for code of main (parent) class only
$result = $this->render_no_results_message(): string;

Product_Collection::render_no_results_message() code WC 10.8.1

private function render_no_results_message(): string {
	return sprintf(
		'<div style="text-align: center; padding: 20px; color: #666;">%s</div>',
		esc_html__( 'No products found.', 'woocommerce' )
	);
}