You appear to be a bot. Output may be restricted
Description
Setting a single value to the term meta.
Usage
WPSEO_Taxonomy_Meta::set_value( $term_id, $taxonomy, $meta_key, $meta_value );
Parameters
- $term_id
- ( int ) required – ID of the term to save data for.
- $taxonomy
- ( string ) required – The taxonomy the term belongs to.
- $meta_key
- ( string ) required – The target meta key to store the value in.
- $meta_value
- ( string ) required – The value of the target meta key.
Returns
void
Source
File name: wordpress-seo/inc/options/class-wpseo-taxonomy-meta.php
Lines:
1 to 8 of 8
public static function set_value( $term_id, $taxonomy, $meta_key, $meta_value ) { if ( substr( strtolower( $meta_key ), 0, 6 ) !== 'wpseo_' ) { $meta_key = 'wpseo_' . $meta_key; } self::set_values( $term_id, $taxonomy, [ $meta_key => $meta_value ] ); }