• Skip to primary navigation
  • Skip to main content

RocketGeek

Home of WP-Members, The Original WordPress Membership Plugin

  • WordPress Plugins
    • WP-Members
      • FAQs
      • Quick Start
      • Documentation
      • Extensions
    • Advanced Options
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Download Protect
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Invite Codes
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • MailChimp Integration
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • PayPal Subscriptions
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Security
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Text Editor
      • Purchase the Plugin
      • Get the Pro Bundle
    • User List
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • User Tracking
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Memberships for WooCommerce
    • WordPass
  • Store
    • Cart
    • Checkout
  • Blog
    • Basics [Free]
    • Tips and Tricks
    • Filters
    • Actions
    • Code Snippets
    • Shortcodes
    • Design
    • Release Announcements
  • Contact
  • Sign In
  • Show Search
Hide Search
Home » Plugins » WP-Members » Documentation » Filter and Action Hooks » wpmem_register_redirect

wpmem_register_redirect

Description

This action hook comes at the end of the registration process. At this point, the user is registered, custom fields have been inserted, emails have been sent.

Parameters

$fields
(array) An array of user data from registration.

The $fields array will have keys for all user data fields from the registration form, keyed by the field’s meta key (option name). Additionally, there will be keys for the following:

  • [ID]
  • [user_nicename]
  • [display_name]
  • [nickname]
  • [user_role]
  • [user_registered] (timestamp)
  • [wpmem_reg_ip]
  • [wpmem_reg_url]

Usage

add_action( 'wpmem_register_redirect', 'my_reg_redirect' );

function my_reg_redirect( $fields ) {
	wp_redirect( 'http://mydomain.com/my-page/' );
	exit();
}
See a list of all filter and action hooks

Ready to get started?

Join Today!

© 2019 · butlerblog.com · RocketGeek is built using WordPress, WP-Members, and the Genesis Framework

  • butlerblog.com
  • WP-Members Support Subscription
  • Terms of Service
  • Refund Policy