Created
November 10, 2025 05:41
-
-
Save aimahdi/c15f63554e82ddac56d1e88e6b1d0c16 to your computer and use it in GitHub Desktop.
Redirect to FluentCart Dashaboard after login
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function redirect_to_fluentcart_account( $redirect_to, $request, $user ) { | |
| $redirect_to = home_url( '/account/' ); | |
| return $redirect_to; | |
| } | |
| add_filter( 'login_redirect', 'redirect_to_fluentcart_account', 10, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment