This page redirects to an external site: https://developer.wordpress.org/reference/functions/add_term_meta/
Adds a custom field (also called meta-data) to a specified term which could be related to any post type. A custom field is effectively a key–value pair.
Note that if the given key already exists among custom fields of the specified term, another custom field with the same key is added unless the $unique argument is set to true, in which case, no changes are made. If you want to update the value of an existing key, use the update_term_meta() function instead.
<code style="color: #000000"> <span style="color: #0000BB"><?php add_term_meta </span><span style="color: #007700">(</span><span style="color: #0000BB">$term_id</span><span style="color: #007700">, </span><span style="color: #0000BB">$meta_key</span><span style="color: #007700">, </span><span style="color: #0000BB">$meta_value</span><span style="color: #007700">, </span><span style="color: #0000BB">$unique</span><span style="color: #007700">); </span><span style="color: #0000BB">?></span> </code>
Since: 4.4.0
add_term_meta() is located in wp-includes/taxonomy.php.
add_term_meta(), delete_term_meta(), get_term_meta(), update_term_meta(), update_termmeta_cache()