wpsc_purchase_log_get_property

Located in: purchase-log.class.php

Functions that call this hook: WPSC_Purchase_Log::get()

Arguments Accepted: $value, $key, $this

Version Introduced: 3.8.9

Description: Filter purchase log property before it is returned.

Code in context:

[php highlight=”346″ firstline=”358″]

public function get( $key ) {

// lazy load the purchase log row if it’s not fetched from the database yet

if ( empty( $this->data ) || ! array_key_exists( $key, $this->data ) )

$this->fetch();

if ( isset( $this->data[$key] ) )

$value = $this->data[$key];

elseif ( isset( $this->meta_data[$key] ) )

$value = $this->meta_data[$key];

else

$value = null;

return apply_filters( ‘wpsc_purchase_log_get_property’, $value, $key, $this );

}

[/php]