Hello Toolset Team,
I would like to know if the following is possible with Toolset:
In a personalised dashboard, the logged-in user should be greeted as follows:
From 6:00 am to 11:59 pm:
"Good morning, Mr XXX"
From 12:00 am to 5:59 pm:
"Good day Mr XXX"
From 6:00 pm to 11:59 pm:
"Good evening, Mr XXX"
I would be very reluctant to use another plugin (e.g. IF-SO; enlace oculto) as I want to keep my WordPress installation as lean as possible. Therefore, I have the hope that I can also implement this directly with Toolset.
Thank you for getting in touch. Now you won't be able to implement this directly with Toolset.
The reason for this is that we don't have any function that can tell what time of the day it is. Essentially if you don't want to use a plugin for this, the only other option is to implement this with the use of custom coding which would be out of the scope of our support forum.
The idea of the custom code is that you will need to get the current time of the user and not the time of the server that the website is on and then display the messages according to this.
Also the comparison logic would need to be done in the custom code itself to display the appropriate message. Now if this is something that you truly want to achieve without using another plugin then I would suggest getting in touch with a contractor as custom coding will definitely be required for this.