Skip to content

Instantly share code, notes, and snippets.

@webtoffee-git
Last active June 8, 2022 11:42
Show Gist options
  • Save webtoffee-git/600c88ebb6f07b075d55020f0f6fcd82 to your computer and use it in GitHub Desktop.
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
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