woocommerce_paypal_force_one_line_item

woocommerce_paypal_force_one_line_item

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_paypal_force_one_line_item') is found 1 times:

  • /includes/gateways/paypal/includes/class-wc-gateway-paypal-request.php line 195
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    */
    protected function get_paypal_args( $order ) {
        WC_Gateway_Paypal::log( 'Generating payment form for order ' . $order->get_order_number() . '. Notify URL: ' . $this->notify_url );
     
        $force_one_line_item = apply_filters( 'woocommerce_paypal_force_one_line_item', false, $order );
     
        if ( ( wc_tax_enabled() && wc_prices_include_tax() ) || ! $this->line_items_valid( $order ) ) {
            $force_one_line_item = true;
        }
     
        $paypal_args = apply_filters(