Skip Navigation

[Resolved] Conditional Output based on [wpv-user field="user_registered"]

This support ticket is created 2 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Shane 2 years, 7 months ago.

Assisted by: Shane.

Author
Posts
#2336929

Hi There,

I would like to create a condition where I can output "trial" if a users registration date is within 7 days of todays date. Is it possible using the [wpv-user field="user_registered"] shortcode?

Thanks in advance

#2337047

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Edward,

Thank you for getting in touch.

This would be possible to do however you only have the user's registered date. You will then need to write some custom code in order to do the calculation to see if the user was registered within 7 days ago.

Unfortunately the custom code required for this would be out of the scope of our support forum and as such I would recommend getting in contact with one of the registered contractors on our site in order to get this done for you.

You can contact them by going to the link below.
https://toolset.com/contractors/

Thanks,
Shane