Background of the issue:
I need to get the language code for taxonomy by its ID. I am writing some custom functions for WP All Export / WP All Import pro to export and import content more quickly. When I export all the taxonomies from the database, I don't have the language codes in the resulting CSV or XLSX, which complicates navigation in the sheet. I need help with a simple function. Example: get_wpml_taxonomy_language( $term_id = '' ){ if ( ! empty ( $term_id ){ return some_code_that_returns_language_code( $term_id ); } else { return; } }
Symptoms:
I don't have the language codes in the resulting CSV or XLSX when exporting taxonomies.
Questions:
How can I get the language code for a taxonomy by its ID?
Is there a function in WPML to return the language code for a taxonomy term?
Gestionar el consentimiento de cookies
Utilizamos cookies para optimizar nuestro sitio web y nuestros servicios. Su consentimiento nos permite procesar datos como el comportamiento de navegación. No dar su consentimiento puede afectar a algunas funciones.
Funcional
Siempre activo
Necesario para que nuestro sitio web funcione y se comunique correctamente.
Preferencias
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Estadísticas
Las utilizamos para analizar las estadísticas de nuestro sitio. La información recopilada es totalmente anónima.El almacenamiento o acceso técnico que se utiliza exclusivamente con fines estadísticos anónimos. Sin una citación, el cumplimiento voluntario por parte de su proveedor de servicios de Internet, u otros registros de terceros, la información almacenada o recuperada solo para este propósito generalmente no puede usarse para identificarlo.
Marketing
Estas cookies rastrean su navegación para proporcionar anuncios relevantes para usted.