[oceanwp_login] Shortcode

This shortcode allows you to display a login/logout link where you want:

[oceanwp_login]

Here is a list of the different parameters:

  • custom_url: If you want to add your own login url, default is the WordPress login url.
  • login_text: If you want to add your own login text, default is Login.
  • logout_text: If you want to add your own logout text, default is Log Out.
  • target: If you want to add your own target between self (same page) and blank (new tab), default is self.
  • logout_redirect: If you want to add your own logout redirect, to be redirected to the same page, add current, default is your home page.

For example, if you want to add your own login url and to be redirected to the same page when you logged out, insert this shortcode:

[oceanwp_login custom_url="your-site.com/login" logout_redirect="current"]
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.