Created
April 30, 2019 00:49
-
-
Save messica/cb19bb10add726c280a806fb3ddcbd2a to your computer and use it in GitHub Desktop.
Sync new members purchased through WooCommerce with MailChimp
This file contains hidden or 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 | |
| /** | |
| * Sync new members purchased through WooCommerce with MailChimp | |
| */ | |
| function my_woocommerce_order_status_completed() { | |
| if ( function_exists( 'pmpromc_processSubscriptions' ) ) { | |
| pmpromc_processSubscriptions(); | |
| } | |
| } | |
| add_action( 'woocommerce_order_status_completed', 'my_woocommerce_order_status_completed', 20 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment