Reply To: Free registration with ccaps

Forums General Free registration with ccaps Reply To: Free registration with ccaps

#595
Carole Asselin
Participant

Deprecated: wp_make_content_images_responsive is deprecated since version 5.5.0! Use wp_filter_content_tags() instead. in /nfs/c09/h02/mnt/138233/domains/s2member.net/html/wp-includes/functions.php on line 4773

Well, i got a hack called s2-auto-login, which is this:

<?php
add_action('ws_plugin__s2member_during_configure_user_registration', 's2_auto_login_after_registration');
function s2_auto_login_after_registration($vars = array())
	{
		if(is_admin()) return; // Not when an Admin is creating accounts.
		
		wp_set_auth_cookie($vars['user_id'], FALSE, FALSE); // Log the user in.
		
		if(did_action('login_form_register')) // For <code>/wp-login.php?action=register</code> compatibility.
			c_ws_plugin__s2member_login_redirects::login_redirect($vars['login'], $vars['user']);
		
		$GLOBALS['_s2_auto_login_after_registration_vars'] = $vars; // For Pro Form compatibility.
		add_action('template_redirect', '_s2_auto_login_after_registration', 1);
	}
function _s2_auto_login_after_registration() // Pro Form redirection handler.
	{
		$vars = $GLOBALS['_s2_auto_login_after_registration_vars'];
		c_ws_plugin__s2member_login_redirects::login_redirect($vars['login'], $vars['user']);
	}

Maybe that would work?