sfw_set_post_term

Description

adds a term to a post

Since: 1.0.0

Code

<?php function sfw_set_post_term( $term, $post, $append = false ){ 
	 … 
 } ?>

Parameter

$term
(WP_Term)
$post
(WP_Post)
$append
(boolean) wether to append the term or replace existing terms

Default: false

Return

(WP_Error|bool)

File

core/includes/functions-wp-helpers.php