shopp_purchased_data_value

filters the order data value as displayed on the Order Manager.

add_filter( 'shopp_purchased_data_value', [callback] )

@param string $value the order data value as displayed on the Order Manager.

Description

If applicable, filters the purchase item data value as displayed on the Order Manager.

Purchase item data is usually collected when the product is added to the cart using the shopp(‘product’,’input’) theme api tag.

Example

// register filter callback
add_filter('shopp_purchased_data_value', 'shopp_purchased_data_value_fltr');

// create filter function
function shopp_purchased_data_value_fltr( $value ) {
    // extra filtering for the admin
    $value = esc_attr($value);
    return $value;
}

See Also

You must be logged in to post a comment.

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

Skip to toolbar