Timeline for Check if specific username is logged in
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 15, 2020 at 18:12 | comment | added | chrisguitarguy |
Use in_array instead of a simple equality check.
|
|
Jan 15, 2020 at 11:09 | comment | added | Lyall | @chrisguitarguy Please can you advise how to change this to check if the username is in an array of usernames, rather than just one? They can still be hard coded as per your example. Thanks! | |
Jul 15, 2019 at 18:03 | comment | added | Johnny97 | The question is not about the current user, he means a specific user | |
Nov 30, 2018 at 20:08 | comment | added | chrisguitarguy | @TravisPflanz if you're just looking to check for a logged in user: developer.wordpress.org/reference/functions/is_user_logged_in Otherwise just modify the function to take the username as a parameter instead of being hardcoded. | |
Nov 27, 2018 at 5:19 | comment | added | Travis Pflanz |
How can this be modified to check for all usernames that are not username_to_check
|
|
Apr 17, 2016 at 15:10 | history | edited | chrisguitarguy | CC BY-SA 3.0 |
formatting.
|
Nov 30, 2012 at 23:23 | vote | accept | Shae | ||
Nov 29, 2012 at 23:23 | history | edited | chrisguitarguy | CC BY-SA 3.0 |
isset check!
|
Nov 29, 2012 at 22:52 | history | answered | chrisguitarguy | CC BY-SA 3.0 |