Skip to content
💸 Introductory Pricing: Save 50% on bundle plans for your first year Get deal

Redirect to customer URL after login

Sunshine Photo Cart has it’s own login forms to allow customers to access their account. Accessible once logged in within the Account area is their order history, any private galleries assigned, and customer profile/addresses.

One of the great benefits of Sunshine Photo Cart for your client galleries is the ability to customize it to work how you need. In this article you will learn how to redirect a customer to any URL after they login using one of Sunshine’s built in login forms.

Use the following custom code and change the URL to whatever you need:

add_filter( 'sunshine_after_login_result', function( $result, $customer ){
	$result['redirect'] = 'URLHERE';
	return $result;
}, 10, 2 );

Learn how to add this custom code to your WordPress website

Still need help?

If you have not yet found your answer in the documentation articles, please contact support