Created
March 19, 2024 15:56
-
-
Save greenhornet79/09395992723fb40d34d9e44c19e76002 to your computer and use it in GitHub Desktop.
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 | |
add_action('bulk_add_leaky_paywall_subscriber', 'zeen_send_welcome_email_after_import', 10, 2); | |
function zeen_send_welcome_email_after_import($user_id, $meta) | |
{ | |
add_filter('leaky_paywall_send_new_admin_email', fn($status) => false ); // disable admin email from being sent | |
leaky_paywall_email_subscription_status($user_id, 'new', $meta); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment