shopp_rmv_product_meta()

remove a meta entry by product id and name.

shopp_rmv_product_meta ( $product, $name, $type )

@param int $product (required) - product id of meta entry to remove
@param string $name (required with parent object context) - the meta name
@param string $type  (optional default: meta) - the meta type
@return bool true if the meta entry was removed, false on failure

Description

remove a meta entry by product id and name.

This function uses shopp_rmv_meta().

Example

$Product = new Product("Men's Black Stainless Steel & CZ Engraved Band", 'name');
shopp_set_product_meta($Product->id, 'Manliness Factor', 'High', 'spec');

// Outputs "High"
echo shopp_product_meta($Product->id, 'Manliness Factor', 'spec');

// Remove the spec
shopp_rmv_product_meta($Product->id, 'Manliness Factor', 'spec');

// Outputs nothing
echo shopp_product_meta($Product->id, 'Manliness Factor', 'spec');

See Also

You must be logged in to post a comment.

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

Skip to toolbar