콘텐츠로 바로가기
WordPress.org

한국어

  • 테마
  • 플러그인
  • 소식
  • 지원
    • 문서
    • 포럼
  • About
  • 워드프레스 소개
    • WordPress 6.9
    • 워드프레스 6.8
    • 워드프레스와 40% 웹을 위한 여정
    • 워드프레스 번역 핸드북
  • 워드프레스 한국팀
  • 워드프레스 받기
워드프레스 받기
WordPress.org

Plugin Directory

Login or Logout Menu Item

  • 플러그인 제출하기
  • 내 즐겨찾기
  • 로그인
  • 플러그인 제출하기
  • 내 즐겨찾기
  • 로그인

Login or Logout Menu Item

작성자: cartpauj
다운로드
  • 세부사항
  • 평가
  • 설치
  • 개발
지원

설명

With this plugin you can easily add a dynamic login/logout menu item to any menu on your WordPress site. The menu item will change based on whether the current user is logged in or logged out. You can also set a specific login page url, login redirect url and a logout redirect url.

Thanks to Juliobox for his prior efforts on the BAW Login/Logout Menu plugin which this is derived from

CONFIGURE SETTINGS

After installing and activating the plugin, you can find the settings in your dashboard under: Settings > Login or Logout

Login Page URL – This should be the URL to the page where your users will login at. For most wordpress sites this will be /wp-login.php but if you’re using a membership plugin like MemberPress, it might be something like /login/ instead.

Login Redirect URL – This is the URL you would like your users to be redirected to after they’ve successfully logged in. You can set it to / to take them to the home page after logging in. If you’re using a membership plugin like MemberPress, you might want to use /account/ instead. NOTE: Some plugins may override this if they are configured to redirect your users somewhere else during login.

Logout Redirect URL – This is the URL you would like your users to be redirected to after they click the Logout link from this menu item. Use a / to redirect them to the home page, or you might want to redirect them back to the login page at /login/ or /wp-login.php etc.

ADD ITEM TO MENU

In your dashboard visit Appearance > Menus.

Then at the top right of that page click the Screen Options button and ensure that Login/Logout checkbox is checked.

Then select a menu to edit, or create a new menu if you don’t already have one.

In the left sidebar find Login/Logout and click the checkbox next to Login|Logout and then click Add to Menu.

You can now drag the menu item wherever you’d like it to appear in your menu. The URL in the menu settings must be left at #lolmiloginout# but you can change the Navigation Label if you’d like it to say something else. Just ensure that the | is there in the label separating the two words.

Now save your menu. That’s it!

BLOCK EDITOR (NAVIGATION BLOCK)

If you’re using the block editor’s Navigation block:

  1. Add or edit a Navigation block on your page or in the Site Editor
  2. Click the (+) to add a new link
  3. In the search field, type “login” or “logout”
  4. Select “Login|Logout” from the suggestions
  5. The link will automatically show “Login” to logged-out users and “Logout” to logged-in users

You can also manually type #lolmiloginout# as the URL if you prefer.

Troubleshooting

After logging in, menu still shows “Login” or Vice-Versa – This is most commonly caused by caching. If you’re using a caching solution such as Cloudflare, WPRocket, or others, be sure that caching is disabled for logged in users, and disable browser caching options as well.

Login is redirecting users somewhere other than my settings – Many times other plugins will have their own login redirect handling which overrides this plugin’s, such as MemberPress for example. In this case, the other plugins will need to be configured to redirect the user where you’d like them to go.

스크린샷

  • Login or Logout Menu Item
  • Login or Logout Menu Item – Settings

설치

  1. Download a .zip of this plugin file
  2. Go to your WordPress Dashboard -> Plugins page
  3. Click “Add New” -> “Upload”
  4. Upload the .zip of this plugin and activate it
  5. For usage instructions, see Details tab and screenshots

후기

No support for PHP version 8.0 or later

henhed 2026년 1월 5일 답글 3개
The plugin don’t seem to work from PHP version 8.0 and above.

Worked Easily and Flawlessly

Lockhart 2025년 7월 12일
I don’t know why this isn’t a standard with Wordpress, but am so grateful this developer saw the need and created a functioning, lightweight, easy to use option! Highly recommend this.

It’s incredible…

MTC 2024년 4월 17일
… that WP doesn’t offer this functionality on its own 😀 Great plugin, works like a charm.

Fantastic! Thank you.

melbatoast4 2022년 9월 14일
Thank you so much for this plugin. Elegantly does what I needed two plugins to do before, with less setup and better functionality.

Damn cool

yannickburky 2022년 1월 18일
Thanks for this piece of software

Does what WordPress should already do

ChickenWhisperer 2021년 10월 17일
thanks!
모든 23 평가 읽기

기여자 & 개발자

“Login or Logout Menu Item”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자
  • cartpauj

자국어로 “Login or Logout Menu Item”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록을 RSS로 구독하세요.

변경이력

1.3.0

  • Added support for the block editor Navigation block
  • Search “login” or “logout” in the Navigation block link picker to add the dynamic link

1.2.3

  • Small tweaks to help avoid hosting blocks
  • Fix nonce validation

1.2.2

  • Bump WP Compatibility

1.2.1

  • Fixed error when saving options on some web-host’s

1.2.0

  • Fixed save options security vulnerability

1.1.1

  • Fixed – Do not redirect Administrator users when logging in

1.1.0

  • Added a settings page
  • Added setting for login page URL
  • Added setting for login redirect URL
  • Added setting for logout redirect URL

1.0.0

  • First Release

기초

  • 버전 1.3.0
  • 최근 업데이트: 1개월 전
  • 활성화된 설치 20,000+
  • 워드프레스 버전 6.0 또는 그 이상
  • 다음까지 시험됨: 6.8.3
  • 언어
    English (US)
  • 태그:
    Dynamicloginlogoutmenumenu item
  • 고급 보기

평점

별 5점 만점에 4.8점.
  • 22/5-별점 후기 별 5개 22
  • 0/4-별점 후기 별 4개 0
  • 0/3-별점 후기 별 3개 0
  • 0/2-별점 후기 별 2개 0
  • 1/1-별점 후기 별 1개 1

리뷰 추가하기

모든 리뷰 보기

기여자

  • cartpauj

지원

할 말 있으신가요? 도움이 필요하신가요?

지원 포럼 보기

  • 소개
  • 뉴스
  • 호스팅
  • 개인정보
  • 쇼케이스
  • 테마
  • 플러그인
  • 패턴
  • 배우기
  • 지원
  • 개발자 도구
  • WordPress.tv ↗
  • 참여하기
  • 이벤트
  • 기부하기 ↗
  • 미래를 위한 5가지
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

한국어

  • X(이전 트위터) 계정 방문하기
  • 블루스카이 계정 방문하기
  • 마스토돈 계정 방문하기
  • 스레드 계정 방문하기
  • 페이스북 페이지 방문하기
  • 인스타그램 계정 방문하기
  • LinkedIn 계정 방문하기
  • 틱톡 계정 방문하기
  • 유튜브 채널 방문하기
  • 텀블러 계정 방문하기
코드는 詩다