• 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_user_data

Last updated on February 11, 2015

rtec_user_data is a filter for dynamically assigning user data for use in form fields.

Usage

<?php add_filter( 'rtec_user_data', 'function_name' ); ?>

Changelog

Pro
2.5 – introduced

Example: Dynamically Set User Data to Pre-Populate Form Field

Step 1) Create a form field of the type “text” and record the input field name

Step 2) Use this code making sure the array keys match (in our example, “profile-field”). If you are trying to use information from the “usermeta” database table, replace “the_meta_key” with the relevan key for your user meta.

function ru_addtional_user_data( $user_data, $user_meta ) {

	$user_data['profile-field'] = isset( $user_meta['the_meta_key'] ) ? $user_meta['the_meta_key'][0] : '';

	return $user_data;
}
add_filter( 'rtec_user_data', 'ru_addtional_user_data', 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