WordPress.org

Ready to get started?Download WordPress

Forums

Login With Ajax
[resolved] Auto-login after registratrion (2 posts)

  1. robertodimarco
    Member
    Posted 7 months ago #

    How can i auto-login new-user after registration success? I'm trying with another plugin but it does not work! Thank u!

    http://wordpress.org/plugins/login-with-ajax/

  2. robertodimarco
    Member
    Posted 7 months ago #

    Solved! I've installed this plugin and added this script in widget-out.php

    <script>
    		        jQuery.fn.exists = function(callback) {
    		          var args = [].slice.call(arguments, 1);
    
    		          if (this.length) {
    		            callback.call(this, args);
    		          }
    
    		          return this;
    		        };
    
    				// Usage
    				jQuery('p.submit input#wp-submit').click(function() {
    
    					setTimeout(function (){
    			             //something you want delayed
    						jQuery('span.lwa-status-confirm').exists(function() {
    							window.location.reload();
    						});
    			         }, 5000); // how long do you want the delay to be?
    				});
    		        </script>

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.