Timeline for Strange behaviour of is_user_logged_in() and get_current_user_id()
Current License: CC BY-SA 4.0
16 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
S Feb 24, 2020 at 20:08 | history | bounty ended | warm__tape | ||
S Feb 24, 2020 at 20:08 | history | notice removed | warm__tape | ||
Feb 24, 2020 at 10:17 | vote | accept | warm__tape | ||
Feb 19, 2020 at 8:21 | history | edited | warm__tape | CC BY-SA 4.0 |
added 135 characters in body
|
Feb 19, 2020 at 8:01 | vote | accept | warm__tape | ||
Feb 24, 2020 at 10:17 | |||||
Feb 18, 2020 at 11:26 | answer | added | Andrea Somovigo | timeline score: 4 | |
Feb 17, 2020 at 10:33 | answer | added | Mike | timeline score: 0 | |
S Feb 17, 2020 at 8:01 | history | bounty started | warm__tape | ||
S Feb 17, 2020 at 8:01 | history | notice added | warm__tape | Draw attention | |
Feb 16, 2020 at 4:50 | review | Close votes | |||
Feb 17, 2020 at 8:05 | |||||
Feb 15, 2020 at 23:21 | history | edited | warm__tape | CC BY-SA 4.0 |
added 116 characters in body; edited title
|
Feb 15, 2020 at 23:04 | comment | added | warm__tape | @MrWhite no, it's on a subdomain anyway so www version doesn't exist. | |
Feb 15, 2020 at 23:03 | comment | added | warm__tape | @Mohsin good thought, but if I wrap it like that it doesn't run at all. | |
Feb 15, 2020 at 13:46 | comment | added | MrWhite |
Is the URL changing (scheme / domain www vs non-www / URL-path) in a way that prevents the authentication cookie being sent? eg. If you logged in at www.example.com , then you won't necessarily be logged in at example.com - depending on how the cookies were set.
|
|
Feb 15, 2020 at 13:46 | comment | added | Muhammad Asad | Is it possible this function is being called too early? Maybe you try to invoke it via init hook so when it is called all pre requisite have been loaded. See the second comment in docs developer.wordpress.org/reference/functions/is_user_logged_in about being a pluggable function and calling it init action hook... | |
Feb 15, 2020 at 7:55 | history | asked | warm__tape | CC BY-SA 4.0 |