• Roundup WP
  • Products
    • Registrations for the Events Calendar Pro
      • Buy Now
      • Setup (Pro)
      • Demo
    • Stripe Extension
      • Buy Now
      • Setup
    • Mailchimp Extension
      • Buy Now
      • Setup
    • Mollie (iDEAL) Extension
      • Buy Now
      • Setup
    • Discount Codes Extension
      • Buy Now
      • Setup
  • Support
    • FAQs and Troubleshooting
    • Codex
    • Contact Support
  • My Account
  • Get Pro

Filter: rtec_payments_line_items

Posted 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 );
Registrations for the Events Calendar Pro logo
Make managing your events pain free Our powerful backend features make editing, contacting, and exporting registrants simple. Learn More