Condition OR for current user ID

Question

I’m tryng without success to create a custom backend based on user ID, if user id is different the 1 or different then 2 show custom backend.

This is my code but it doesn’t work, any help would be very appreciate it.

if ($current_user_id != 1 || $current_user_id != 2){ show custom backend

Thank you

--------------------------------------------------

>>> Share a link to this question, just copy and paste the code bellow on your web page <<<

<a href="https://www.wptricks.com/question/condition-or-for-current-user-id/">

Condition OR for current user ID</a>
0
, , user1818326 1 month 0 Answers 49 views 0

Leave an answer