shopp_txnstatus_labels

filters the transaction status labels lookup table.

add_filter( 'shopp_txnstatus_labels', [callback] )

@param array $labels the payment status labels lookup table.

Description

filters the transaction status labels lookup table.

Example

// register filter callback
add_filter('shopp_txnstatus_labels', 'shopp_txnstatus_labels_filter');

// create filter function to add a 'Part Shipped' status.
function shopp_txnstatus_labels_filter( $labels ) {
    $labels = array(
        // trans status => your label
        'review' => 'Review',
        'purchase' => 'Purchase Order',
        'invoiced' => 'Invoiced',
        'authed' => 'Authorized',
        'auth-failed' => 'Declined',
        'captured' => 'Paid',
        'shipped' => 'Shipped',
        'part-shipped' => 'Part Shipped',
        'refunded' => 'Refunded',
        'voided' => 'Void',
        'closed' => 'Closed'
    );

    return $labels;
}

See Also

You must be logged in to post a comment.

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

Skip to toolbar