You appear to be a bot. Output may be restricted
Description
Add term(s) associated with a given object.
Usage
$array|WP_Error = wp_add_object_terms( $object_id, $terms, $taxonomy );
Parameters
- $object_id
- ( int ) required – The ID of the object to which the terms will be added.
- $terms
- ( string|int|array ) required – The slug(s) or ID(s) of the term(s) to add.
- $taxonomy
- ( array|string ) required – Taxonomy name.
Returns
array|WP_Error Term taxonomy IDs of the affected terms.
Source
File name: wordpress/wp-includes/taxonomy.php
Lines:
1 to 3 of 3
function wp_add_object_terms( $object_id, $terms, $taxonomy ) { return wp_set_object_terms( $object_id, $terms, $taxonomy, true ); }