Support

Search results for ""

Sorry, no results found. Perhaps you would like to search the documentation?
All Topics
Roman

Translate value of custom field

Hello,

I have recently in two different projects the case that I show a custom field with a return value of e.g. “2811”.
In my case this would be a shop-id.

I wonder if it’s possible to “translate” this value via a hook in the functions.php into a “name” or somthing like this.

Thank you, Roman

3 years, 5 months ago
Stefan
Developer

Hi Roman,

Of course, you’ll have to do the translation logic yourself, but you can use the following filter to transform the value any way you like.

ac/column/value

Have a look at the examples on how to trigger this hook for a specific custom field.

3 years, 5 months ago
Roman

Great, thank you very much.

I searched the right thing – with the wrong words ;)

Thanks, Roman

3 years, 5 months ago
Stefan
Developer

You’re welcome.
Please let me know if you have any other questions related to the hook.
I will close this topic for now.

3 years, 5 months ago

You must be logged in to reply to this topic.