Timeline for tribe_get_start_time displays the current date and time on other post types than tribe_events
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 20, 2018 at 15:31 | comment | added | studiok7 | I'll inspect that. Thank you again for all those clarifications ;-) | |
Nov 20, 2018 at 15:25 | comment | added | kero |
switch() is a control structure. About the equal signs: you are correct. More info here or here. I prefer using === when possible, here it is no problem as both are strings
|
|
Nov 20, 2018 at 14:53 | comment | added | studiok7 | What do you mean by "switch" ? And also a noob question, why that function needs 3 equal signs (means identical if i'm correct), what is the difference between "=", "==" and "===" ? | |
Nov 20, 2018 at 14:49 | comment | added | kero |
You're welcome! Using get_post_type() is cleaner here in my opinion. If in the future other post types will be in the list as well, you can then use switch e.g.
|
|
Nov 20, 2018 at 14:48 | comment | added | studiok7 | Thanks @kero, i get it. I used the get_post_type solution you proposed and it works perfectly. ;-) | |
Nov 20, 2018 at 14:43 | vote | accept | studiok7 | ||
Nov 20, 2018 at 14:32 | history | answered | kero | CC BY-SA 4.0 |