shopp_product_meta_count()

gets a count of meta entries for a product.

shopp_product_meta_count ( $product, $type )

@param int $product (required) the product id
@param type $type (optional default: meta) the meta type to count
@return int count of meta entries, false on failure

Description

gets a count of meta entries for a product.

Example

// how many meta entries of type image does product 22 have?
$meta_count = shopp_product_meta_count(22, 'image');

See Also

You must be logged in to post a comment.

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

Skip to toolbar