Navigation überspringen

[Gelöst] wpt_field_option alternative

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

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 vor 4 Jahre, 1 Monat. 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)

Dieses Thema enthält 2 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Puntorosso vor 4 Jahre.

Assistiert von: Luo Yang.

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