shopp_product_tag()

get a ProductTag object

shopp_product_tag ( $tag, $options )

@param mixed $tag tag id or tag name
@param array $options (optional) loading options
@return bool|ProductTag returns false on error, ProductTag object on success

Description

get a ProductTag object

Example

// Lookup a tag by name
$Tag = shopp_product_tag('wachowski');

// Set the global collection for the template api
ShoppCollection($Tag);

See Also

You must be logged in to post a comment.

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

Skip to toolbar