Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- success: function(data)
- {
- if(data.reg==true)
- {
- jQuery('#reg_message').prepend('Register Successfully. Redirecting...');
- window.setTimeout(function()
- {
- document.location.href = ajax_object.redirecturl;
- }, 2000);
- }
- wp_localize_script(
- 'jquery_login',
- 'ajax_object', array(
- 'ajax_url' => admin_url('admin-ajax.php'),
- 'redirecturl' => get_bloginfo('url') . '/user/dashboard' // Your Address
- )
- );
Add Comment
Please, Sign In to add comment