Last active
December 12, 2022 16:33
-
-
Save codezz/3082b1c5a9f31599e53b77de09b36063 to your computer and use it in GitHub Desktop.
Dollie redirect to URL on site launch
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 | |
| // Redirects directly after launch. | |
| add_filter('dollie/launch_site/immediate_redirect', function ($redirect) { | |
| $redirect = 'https://example.com/dashboard'; | |
| return $redirect; | |
| }); | |
| // Redirects after the site has finished to launch. Happens on the site page when is loading. | |
| add_filter('dollie/launch_site/redirect', function ($redirect) { | |
| $redirect = 'https://example.com/dashboard'; | |
| return $redirect; | |
| }); | |
| // Redirects to a different location on the launched site | |
| add_filter('dollie/site/login_url/location', function ( $location ) { | |
| return '/dashboard'; | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment