Last active
January 30, 2020 21:38
-
-
Save kimcoleman/62c2436ce72ba06f40bba636df72dd45 to your computer and use it in GitHub Desktop.
Add a new order status 'chargeback' to your PMPro site.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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