woocommerce_order_details_after_customer_details

ACTION woocommerce\templates\order\order-details-customer.php (ligne 86) github
Action hook fired after an address in the order customer details.

Paramètres

Entrée :
$order
Sortie :
@param string $address_type Type of address (billing or shipping).
@param WC_Order $order Order object.

Utilisation

// Ajouter une fonction au hook action 'woocommerce_order_details_after_customer_details'
add_action('woocommerce_order_details_after_customer_details', 'ma_fonction_personnalisee', 10, 1);

function ma_fonction_personnalisee($order) {
    // Votre code ici
    error_log('Hook woocommerce_order_details_after_customer_details déclenché');
}

Actualités

Chargement des actualités...