woocommerce_admin_order_item_types

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

Paramètres

Entrée :
'line_item'
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

// Modifier la valeur avec le filtre 'woocommerce_admin_order_item_types'
add_filter('woocommerce_admin_order_item_types', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre('line_item') {
    // Modifier la valeur
    return 'line_item';
}

Actualités

Chargement des actualités...