<?php
/**
* Adjust myCRED Point Rewards
* Will move the points payout from when an order is "paid" to when
* an order is "completed".
* @version 1.0
*/
function mycred_pro_adjust_woo_rewards() {
remove_action( 'woocommerce_payment_complete', 'mycred_woo_payout_rewards' );
add_action( 'woocommerce_order_status_completed', 'mycred_woo_payout_rewards' ); // woocommerce_order_status_<any order status>
}
add_action( 'after_setup_theme', 'mycred_pro_adjust_woo_rewards', 110 );