Front end or admin side? On front end, pass it through a filter and include filter name into “Custom Filters”. On admin side, if it is an input field, include its id into “Custom Fields”, if it is a ‘display’ field, you will need the latest beta from GitHub to use the new advanced integration capabilities.
Thread Starter
mpbm23
(@mpbm23)
I am asking for a plugin that I have created, that returns the products data for woocommerce.
If the title returns [:en] title [:el] titlos [:] how do I parse it to an array so I can get only el ? Will I need a regular expression?
Front end or admin side? There are a few internal functions which parse multilingual fields, but we do not encourage people to make calls to internal qtx functions, since they are subject to change. Instead, use filters as I described or designated interface functions which are now being shaped and will be finalized in version 3.4. If it is a private plugin you will maintain and use yourselves only, then you can do whatever you wish, call qtranxf_use_language, for example.