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

get_product_search_form() WC 1.0

Display product search form.

Will first attempt to locate the product-searchform.php file in either the child or. the parent, then load it. If it doesn't exist, then the default search form. will be displayed.

The default searchform uses html5.

Возвращает

Строку.

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

get_product_search_form( $echo );
$echo(true/false)
(default: true).

Код get_product_search_form() WC 5.0.0

<?php
function get_product_search_form( $echo = true ) {
	global $product_search_form_index;

	ob_start();

	if ( empty( $product_search_form_index ) ) {
		$product_search_form_index = 0;
	}

	do_action( 'pre_get_product_search_form' );

	wc_get_template(
		'product-searchform.php',
		array(
			'index' => $product_search_form_index++,
		)
	);

	$form = apply_filters( 'get_product_search_form', ob_get_clean() );

	if ( ! $echo ) {
		return $form;
	}

	// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
	echo $form;
}