Skip to content

Instantly share code, notes, and snippets.

@codezz
Last active December 12, 2022 16:33
Show Gist options
  • Select an option

  • Save codezz/3082b1c5a9f31599e53b77de09b36063 to your computer and use it in GitHub Desktop.

Select an option

Save codezz/3082b1c5a9f31599e53b77de09b36063 to your computer and use it in GitHub Desktop.
Dollie redirect to URL on site launch
<?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