# Copy Term Meta to Polylang Category Translations

> Copies chosen term meta, such as a category color, icon or display order, to the translations of categories and tags when they are created or updated.

- Type: PHP
- Runs: Run everywhere
- Category: [Multilingual](https://wpide.com/library/category/multilingual/)
- Tags: polylang, taxonomies, term-meta
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/pll-copy-term-meta/

## Code

```php
$wpide_keys = array( 'color', 'icon', 'order' ); // Term meta keys to copy.

add_filter( 'pll_copy_term_metas', function ( $metas ) use ( $wpide_keys ) {
    return array_values( array_unique( array_merge( (array) $metas, $wpide_keys ) ) );
} );
```

## Notes

Add your term meta keys to $wpide_keys.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Copy Term Meta to Polylang Category Translations" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
