How to display different links for logged in and logged out users?

前端 未结 8 967
天涯浪人
天涯浪人 2021-01-26 02:23

When a user is not logged in I am trying to show

Support || Log In

When they are logged out it should say

Support || Log Out 
<         


        
8条回答
  •  闹比i
    闹比i (楼主)
    2021-01-26 02:45

    Have you tried changing ?php else if (!is_user_logged_in() ) to just ?php if (!is_user_logged_in() ) ?

提交回复
热议问题