Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Add a new order status 'chargeback' to your PMPro site.
<?php
/**
* Add a new order status 'chargeback' to your PMPro site.
*
*/
function add_chargeback_custom_order_status( $statuses ) {
$statuses[] = 'chargeback';
return $statuses;
}
add_filter( 'pmpro_order_statuses', 'add_chargeback_custom_order_status' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment