wpsc_purchase_log_set_properties

Located in: purchase-log.class.php

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

Arguments Accepted: $properties, $this

Version Introduced: 3.8.9

Description: Filter values before they are set as purchase log’s properties.

Code in context:

[php highlight=”457″ firstline=”447″]

public function set( $key, $value = null ) {

if ( is_array( $key ) ) {

$properties = $key;

} else {

if ( is_null( $value ) )

return $this;

$properties = array( $key => $value );

}

$properties = apply_filters( ‘wpsc_purchase_log_set_properties’, $properties, $this );

if ( array_key_exists( ‘processed’, $properties ) ) {

$this->previous_status = $this->get( ‘processed’ );

if ( $properties[‘processed’] != $this->previous_status )

$this->is_status_changed = true;

}

$this->data = array_merge( $this->data, $properties );

return $this;

}

[/php]