Skip Navigation

[Resolved] wpt_field_option alternative

This thread is resolved. Here is a description of the problem and solution.

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 3 years, 8 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 – 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)

This topic contains 2 replies, has 2 voices.

Last updated by Puntorosso 3 years, 7 months ago.

Assisted by: Luo Yang.

Author
Posts
#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!