Allow plugins to determine whether refunds UI should be rendered in the template.
$order
Sortie :
@param bool $render_refunds If the refunds UI should be rendered. @param int $order_id The Order ID. @param WC_Order $order The Order object.
// Ajouter une fonction au hook action 'woocommerce_order_item_add_action_buttons'
add_action('woocommerce_order_item_add_action_buttons', 'ma_fonction_personnalisee', 10, 1);
function ma_fonction_personnalisee($order) {
// Votre code ici
error_log('Hook woocommerce_order_item_add_action_buttons déclenché');
}
Chargement des actualités...