create a new taxonimical term.

shopp_add_product_term ( $term, $taxonomy, $parent )

@param string $term (required) the new term name.
@param string $taxonomy (optional default:shopp_category) The taxonomy name.  The taxonomy specified must be of the Shopp product object type.
@param int $parent (option default:0) the parent term id.
@return int|bool term id on success, false on failure


create a new taxonimical term.


// register shopp_product_terms taxonomy

// Add a new shopp_product_term, "My Custom Term"
$termid = shopp_add_product_term('My Custom Term', 'shopp_product_terms');

// Add the term to product 131
shopp_product_add_terms ( 131, array($termid), 'shopp_product_term' );

See Also

You must be logged in to post a comment.

© Ingenesis Limited. Shopp™ is a registered trademark of Ingenesis Limited.