shopp_payment_status_labels

filters the payment status labels lookup table.

add_filter( 'shopp_payment_status_labels', [callback] )

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

Description

filters the payment status labels lookup table.

Example

// register filter callback
add_filter('shopp_payment_status_labels', 'shopp_payment_status_labels_filter');

// create filter function
function shopp_payment_status_labels_filter( $labels ) {
    $labels = array(
        // trans status => your label
        'PENDING' => 'Pending',
        'CHARGED' => 'Charged',
        'REFUNDED' => 'Refunded',
        'VOID' => 'Void'
    );

    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