Automattic\WooCommerce\EmailEditor\Integrations\WooCommerce\Renderer\Blocks
Product_Collection::render_no_results_message
Render a no results message.
Метод класса: Product_Collection{}
Хуков нет.
Возвращает
string.
Использование
// private - только в коде основоного (родительского) класса $result = $this->render_no_results_message(): string;
Код Product_Collection::render_no_results_message() Product Collection::render no results message WC 11.2.2
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' )
);
}