Skip to content

Instantly share code, notes, and snippets.

@greenhornet79
Created March 19, 2024 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save greenhornet79/09395992723fb40d34d9e44c19e76002 to your computer and use it in GitHub Desktop.
Save greenhornet79/09395992723fb40d34d9e44c19e76002 to your computer and use it in GitHub Desktop.
<?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