Overview

Send each user to the right page after login and logout, by role: dashboard for editors, My account for customers, your page for members.

  • Redirect by role
  • After logout
  • WooCommerce login

Best for: Membership sites and stores

Installation

  1. Download landly-login-redirect.zip from My account › My plugins or from your order email. Do not unzip it.
  2. In WordPress, go to Plugins › Add New Plugin › Upload Plugin, choose the zip and click Install Now, then Activate.

Requires WordPress 6.0+, PHP 7.4+. Works with any theme, block themes and page builders.

Features

  • A page for each role after login
  • A page after logout
  • Shortcuts: {home}, {admin}, {account}, {shop}, {profile}
  • Paths like /members/ or full addresses
  • Keeps the page the user asked for
  • wp-login and WooCommerce login
  • Only addresses on your site, for safety

Shortcodes

Paste a shortcode in any page, post, widget or page builder text block.

  • [landly_preview]

Options of each shortcode are described in the Features above and in the plugin settings page.

For developers

Customize the plugin from your theme’s functions.php or a small plugin, without editing its files (your changes survive updates).

Filters

  • landly_active
  • landly_sanitize
add_filter( 'landly_active', function ( $value ) {
	// Change $value here.
	return $value;
}, 10, 1 );

Actions

  • landly_admin_after_form
  • landly_admin_before_form
  • landly_admin_form_end

Updates

Updates are free. When a new version is out, it appears in Dashboard › Updates of your WordPress site and you can install it in one click, or turn on automatic updates in Plugins. This works for the zip downloaded from your Woo-Plugins account; older copies can be replaced by downloading the latest version from My plugins. See the changelog.

Frequently asked questions

What if a user has several roles?

The first matching role in the list is used, administrators first.

Can I send customers to a custom page?

Yes, enter its path, for example /welcome/.

Still stuck?

Write to us with your WordPress and WooCommerce versions and what you tried: we answer by email.

Contact support