shopp_rmv_meta()

remove a meta entry by meta id, or parent id, context, type, and name

shopp_rmv_meta ( $id, $context, $name, $type )

@param int $id (required) - meta entry id or, with context, the parent object id
@param int $context (required for parent object id) - the parent object context
@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 meta id, or parent id, context, type, and name

Example

// Lookup an existing product by name
$Product = new Product("Mens Black Stainless Steel & CZ Engraved Band", 'name');

shopp_set_meta($Product->id, 'product', Manliness Factor', 'High', 'spec');

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

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

// Outputs nothing
echo shopp_meta($Product->id, 'product', '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