woocommerce_admin_order_should_render_refunds

woocommerce_admin_order_should_render_refunds

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.6.4.1

apply_filters('woocommerce_admin_order_should_render_refunds') is found 1 times:

  • /includes/admin/meta-boxes/views/html-order-items.php line 19
     * @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.
     */
    $render_refunds = (bool) apply_filters( 'woocommerce_admin_order_should_render_refunds', 0 < $order->get_total() - $order->get_total_refunded() || 0 < absint( $order->get_item_count() - $order->get_item_count_refunded() ), $order->get_id(), $order );
    
    global $wpdb;
    
    $payment_gateway     = wc_get_payment_gateway_by_order( $order );
    $line_items          = $order->get_items( apply_filters( 'woocommerce_admin_order_item_types', 'line_item' ) );
    $discounts           = $order->get_items( 'discount' );