shopp_rmv_image()

remove an image record from the database

shopp_rmv_image ( $image, $context )

@param int $image the image id
@param string $context the object type the image asset is attached to.  This can be product or category
@return mixed false on failure, int image asset id on success.

Description

remove an image record from the database

Example

remove a product image

// remove product image with id 5
shopp_rmv_image( 5, 'product' );

remove a category image

// remove product image with id 5
shopp_rmv_image( 5, 'category' );

See Also

You must be logged in to post a comment.

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

Skip to toolbar