Hello Guys.
please is there a way to redirect users after registering to My Accounts page?
i tried this.
<?php add_action('ws_plugin__s2member_after_configure_user_registration', function($vars = array()) { if (!is_admin() && !empty($vars['processed']) && $vars['processed'] === 'yes') { $_POST['redirect_to'] = $_REQUEST['redirect_to'] = // Custom Thank-You Page URL. "http://mydomain.com/wp-login.php". // « change this value. // These will all be optional. Here as an example only. '?email='.urlencode($vars['email']). // Tack on the email address if you like. '&fname='.urlencode($vars['fname']). // Tack on the first name if you like. '&lname='.urlencode($vars['lname']). // Tack on the last name if you like. '&my_custom_field='.urlencode($vars['fields']['my_custom_field']). // A custom field maybe. '&username='.urlencode($vars['login']); // The user's login; i.e., their username. } }); But it redirects to the home page after registrattion.