shopp_rmv_order_line_data()

remove one or all data entries from an order line-item data array

shopp_rmv_order_line_data ( $order, $line, $name )

@param int $order (required) the order id
@param int $line (required) the order line item
@param string $name (optional default:false) the key to remove, removes all data when false
@return bool true on success, false on failure

Description

remove one or all data entries from an order line-item data array

Example

remove all data entries from line 2 of order 100

shopp_rmv_order_line_data( 100, 2 );

remove a specified data entry from line 0 of order 100

shopp_rmv_order_line_data( 100, 0, 'Gift Wrap' );

See Also

You must be logged in to post a comment.

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

Skip to toolbar