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.
N/A
Sortie :
@param bool $echo (default: true). @return string
// Ajouter une fonction au hook action 'pre_get_product_search_form'
add_action('pre_get_product_search_form', 'ma_fonction_personnalisee', 10, 1);
function ma_fonction_personnalisee() {
// Votre code ici
error_log('Hook pre_get_product_search_form déclenché');
}
Chargement des actualités...