Last active
June 8, 2022 11:42
-
-
Save webtoffee-git/600c88ebb6f07b075d55020f0f6fcd82 to your computer and use it in GitHub Desktop.
Set email alert on successful cron import using Product Import Export for WooCommerce by WebToffee
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
function wt_pipe_cron_ended(){ | |
$email = 'asd@example.org, ert@example.org'; | |
wp_mail( $email, "Product Auto Import Export", 'Product scheduled import completed.' ); | |
} | |
add_action('wt_ier_scheduled_action_finished', 'wt_pipe_cron_ended'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment