Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Adjust myCRED Point Rewards
- * Will move the points payout from when an order is "paid" to when
- * an order is "completed".
- * @version 1.0
- */
- add_action( 'after_setup_theme', 'mycred_pro_adjust_woo_rewards', 110 );
- 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' );
- }
Add Comment
Please, Sign In to add comment