Free Directory, Listing & Classifieds WordPress Plugin Support Themes ListingHive How do i redirect to another page on-click the sign-in button?

How do i redirect to another page on-click the sign-in button?

  • Author
    Posts
  • adminplantzeebo

    So I have been trying to figure out, how to write the js to do the above. I realized that the sign-in button doesn’t have a unique id and neither does it belong to a class. Kindly let me know where I am going wrong or an alternative solution.

    ihordeveloper

    You can try using this code snippet, but please note that it’s not tested:

    add_filter(
    	'hivepress/v1/forms/user_login',
    	function( $form ) {
    		if ( ! isset( $form['redirect'] ) ) {
    			$form['redirect'] = 'custom url here';
    		}
    
    		return $form;
    	},
    	1000
    );
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Subscribe

Sign In

Don't have an account? Register

Forgot password?

Register

Already have an account? Sign In

Forgot password?

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.