Skip Navigation

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

This support ticket is created hace 2 años, 8 meses. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

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)

Este tema contiene 1 respuesta, tiene 2 mensajes.

Última actualización por Shane hace 2 años, 8 meses.

Asistido por: Shane.

Autor
Mensajes
#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

Idiomas: Inglés (English )

Zona horaria: 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