Sauter la navigation

[Résolu] wpt_field_option alternative

Ce fil est résolu. Voici une description du problème et la solution proposée.

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 Il y a 4 années. 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)

Ce sujet contient 2 réponses, a 2 voix.

Dernière mise à jour par Puntorosso Il y a 4 années.

Assisté par: Luo Yang.

Auteur
Publications
#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!