Home › Forums › Plugin Support › How can I use a custom "Email Is Successfully Verified" page?
Tagged: resetpass
- This topic has 12 replies, 5 voices, and was last updated 11 years, 1 month ago by Support.
-
AuthorPosts
-
March 15, 2013 at 10:52 am #3432March 15, 2013 at 11:11 pm #3440SupportMember
add_filter( ‘user_meta_execution_page_config’, ‘user_meta_execution_page_config_function’, 10, 2 );
function user_meta_execution_page_config_function( $config, $key ){
if( $key != ‘lostpassword’ )
return $config;$config[‘redirect’] = ‘http://www.mywebsite.com/email-verified/’;
return $config;
}March 15, 2013 at 11:44 pm #3442blase40MemberThanks!
Any idea why this code would break my site (the infamous “all white screen”) if I am adding this code immediately before the closing ?> in functions.php?
March 15, 2013 at 11:56 pm #3444SupportMemberHello, In following codes:
$config[‘redirect’] = ‘http://www.mywebsite.com/email-verified/’;
replace ascii code(last &#…;) to single quote(‘), somehow it is showing in ascii so it falls error in your site.
Thanks.
March 16, 2013 at 2:15 am #3456blase40MemberThanks – that doesn’t seem to help at all, still getting an error.
November 13, 2013 at 9:26 pm #4463krlaMemberI have the same problem and the filter you posted doesn’t work for me. The page is still not redirecting anywhere.
Try for example with this link. It says that the account is already activated, but the redirect is not working: http://www.absolutnetwork.com/resetpass/?email=domains%40andreullos.com&key=4QaLydnWTchzXeRV3nteEoGB6TIvRY&action=ev
Any solution for this?
November 15, 2013 at 5:39 am #4465andreuMemberHi,
Any news about this? I’m also interested in this feature.
Thanks
November 15, 2013 at 6:30 am #4467SupportMemberHello, Try those code:
add_action( 'user_meta_email_verified', 'user_meta_email_verified_redirection' ); function user_meta_email_verified_redirection(){ wp_redirect( 'http://example.com' ); exit(); }
Thanks.
November 16, 2013 at 6:20 am #4468andreuMemberThank you, it seems to work fine!
The problem now is that the user is not logged in automatically. Is it possible to do this? My intention is to redirect the user to his profile, where he have to upload his avatar.
In previous versions of user meta pro this was working fine, but with some update we’ve lost this feature.If auto login is not possible, is it possible to detect the first login of an user and redirect him to the profile?
Thank you again.
November 18, 2013 at 7:38 pm #4470SupportMemberHello, auto login is only working when “User auto activation.” is selected. It will not work when email verification needed with registration.
November 20, 2013 at 4:52 am #4472andreuMemberOk.
So, is it possible to detect the first time that user logs in to redirect him to the profile edit page? But want them to make a fast registration. But we also need them to enter to their profile to fill his info before using our platform.
Thanks
November 24, 2013 at 6:22 pm #4479deniscgnMemberHi,
can you please add this to the next update. It looks so strange that the user is allways sent to “resetpass” for, verify the email during the registration.
November 24, 2013 at 6:42 pm #4481SupportMemberHello, you can change “resetpass” to something else (e.g “verify”) using “user_meta_front_execution_page” filter hook. Put following code to your functions.php
add_filter('user_meta_front_execution_page', create_function('','return "verify";'));
This will create a page named “verify” and generate new link indicating to that page.
Thanks. -
AuthorPosts
- You must be logged in to reply to this topic.