shopp_product_tags()

get an array of all product tags

shopp_product_tags ( $args )

@param array $args get_terms() arguments.
@return array ProductTag objects

Description

get an array of all product tags

This function uses the WordPress function get_terms. See http://codex.wordpress.org/Function_Reference/get_terms for arguments.

Additional Arguments
* index – ‘id’ (default), ‘slug’, or ‘name’ indexing
* load – array of ProductTag load() method options

The default get_terms() arguments are:
* get – all
* hide_empty – false

The fields get_terms() argument can not be set.

Examples

List all product tags indexed by id.

$tags = shopp_product_tags();

List all product tags indexed by slug.

$tags = shopp_product_tags(array('index'=>'slug'));

List all product tags indexed by name.

$tags = shopp_product_tags(array('index'=>'name'));

See Also

You must be logged in to post a comment.

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

Skip to toolbar