woocommerce_locate_template

ACTION woocommerce\includes\wc-deprecated-functions.php (ligne 345) github

Pas de documentation disponible

Paramètres

Entrée :
$template_name, $template_path = '', $default_path = ''
Sortie :
N/A

Utilisation

Localiser un fichier template WooCommerce

Trouver le chemin d'un template (thème ou plugin)

ui technical
// Localiser un template
$template_path = wc_locate_template('single-product.php');

if (file_exists($template_path)) {
    echo 'Template trouvé: ' . $template_path;
}

Actualités

Chargement des actualités...