Skip to content

Instantly share code, notes, and snippets.

@kimcoleman
Last active January 30, 2020 21:38
Show Gist options
  • Save kimcoleman/62c2436ce72ba06f40bba636df72dd45 to your computer and use it in GitHub Desktop.
Save kimcoleman/62c2436ce72ba06f40bba636df72dd45 to your computer and use it in GitHub Desktop.
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