woocommerce_admin_order_item_headers

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

Paramètres

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

Utilisation

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

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

Actualités

Chargement des actualités...