shopp_purchased_data_name

filters the purchase item data name as displayed on the Order Manager.

add_filter( 'shopp_purchased_data_name', [callback] )

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

Description

If applicable, filters the purchased item data name as displayed on the Order Manager.

Purchased 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_name', 'shopp_purchased_data_name_fltr');

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

See Also

You must be logged in to post a comment.

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

Skip to toolbar