1. Home
  2. Shortcode Reference
  3. Login/Logout Link

Login/Logout Link

Display a login link to visitors, or a logout link to logged-in members.

[wpay-login-logout]

Parameters

The shortcode can be used without any parameters, as shown above. For additional configuration, add any of the following optional parameters to the shortcode:

  • login_link_text – Change the login link text. Default is “Log in”.
  • logout_link_text – Change the logout link text. Default is “Log out”.
  • login_redirect_url – Enter a URL to redirect users after successfully logging in.
  • logout_redirect_url – Enter a URL to redirect users after successfully logging out.

Example Usage

[wpay-login-logout login_link_text="Account Login" logout_link_text="Account logout" login_redirect_url="http://mysite.com/account" logout_redirect_url="http://mysite.com/home"]
Was this article helpful to you? Yes No

How can we help?