• Roundup WP
  • Products
    • Registrations for the Events Calendar Pro – WordPress Event Registration
      • Buy Now
      • Setup (Pro)
      • Demo
    • Stripe Extension
      • Buy Now
      • Setup
    • Mailchimp Extension
      • Buy Now
      • Setup
    • RTEC Memberships
      • Getting Started
    • RTEC WooCommerce Payments
    • Mollie (iDEAL) Extension
      • Buy Now
      • Setup
    • Discount Codes Extension
      • Buy Now
      • Setup
  • Pricing
  • Features
    • Payments
    • Form Builder
    • Email Messages
    • Registration Management
    • Memberships
    • Event Specific
  • Blog
  • Support
    • FAQs and Troubleshooting
    • Codex
    • Contact Support
  • My Account
  • Get Started

Filter: rtec_payments_line_items

Last updated on January 11, 2015

rtec_payments_line_items is a filter for dynamically adding or changing line items right before checkout.

Usage

<?php add_filter( 'rtec_payments_line_items', 'function_name', 10, 2 ); ?>

Parameters

$line_items – (array) Line items including cost, label, and quantity.
$payment_data – (array) Data associated with the registration, event, and payment.

Changelog

Pro
2.0 – introduced

Example: Add an Additional Processing Fee

function ru_add_processing_fee( $line_items, $payment_data ) {

	$line_items['processing_fee'] = array(
		'cost' => 2,
		'label' => 'Processing Fee',
		'quantity' => ''
	);
	return $line_items;
}
add_filter( 'rtec_payments_line_items', 'ru_add_processing_fee', 10, 2 );
Company
  • About
  • Contact
  • Careers
Products
  • Registrations for the Events Calendar
  • Stripe Payments (extension)
  • Mailchimp Email Lists (extension)
  • Event Memberships (extension)
  • WooCommerce Payments (extension)
  • Mollie iDEAL Payments (extension)
  • Discount Codes (extension)
Features
  • Form Builder
  • Event Registration Payments
  • Membership Features
  • Email Messaging
  • Registration Management
  • Event Specific
Resources
  • Support
  • My Account
  • Documentation
  • Pricing
  • Blog
Connect with Us
Follow us on Facebook Contact Us
Copyright © 2025 Roundup WP LLC
Terms & Conditions Privacy Policy Roundup WP Coupon Codes