woocommerce_admin_order_items_after_line_items

ACTION woocommerce\includes\admin\meta-boxes\views\html-order-items.php (ligne 84) github
Allow plugins to determine whether refunds UI should be rendered in the template.

Paramètres

Entrée :
$order->get_id(
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.

Utilisation

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

function ma_fonction_personnalisee($order->get_id() {
    // Votre code ici
    error_log('Hook woocommerce_admin_order_items_after_line_items déclenché');
}

Actualités

Chargement des actualités...