Saltar navegación

[Resuelto] wpt_field_option alternative

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

Problem:

Which is the future-safe alternative of filter hook "wpt_field_options"?

Solution:

There isn't better alternation currently, but if there is new filter API hook in the future, we will provide workaround/example in our document:

Relevant Documentation:

https://toolset.com/documentation/programmer-reference/types-api-filters/#wpt_field_options

This support ticket is created hace 3 años, 11 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.

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

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Este tema contiene 2 respuestas, tiene 2 mensajes.

Última actualización por Puntorosso hace 3 años, 11 meses.

Asistido por: Luo Yang.

Autor
Mensajes
#2049327

I use "wpt_field_options" in my coding to populate select/radio fields from custom posts or users.
But looking at your docs I see "This filter may be modified or replaced in a future Types release, use at your own risk."

Which is the future-safe alternative?

#2049887

Hello,

There isn't better alternation currently, but if there is new filter API hook in the future, we will provide workaround/example in our document:
https://toolset.com/documentation/programmer-reference/types-api-filters/#wpt_field_options

#2057145

My issue is resolved now. Thank you!