wallet balance email

This commit is contained in:
Lem Smyth 2022-02-17 19:18:09 -06:00
parent 12251aed05
commit a1c0ac76a3

View file

@ -501,7 +501,7 @@ class LBRY_Admin
if ( ! get_transient( 'lbry_wallet_warning_email' ) ) { if ( ! get_transient( 'lbry_wallet_warning_email' ) ) {
$email = get_option( 'admin_email' ); $email = get_option( 'admin_email' );
$subject = 'Your LBRYPress Wallet Balance is Low!'; $subject = 'Your LBRYPress Wallet Balance is Low!';
$message = "Your LBRY Wallet for your WordPress installation at " . site_url() . " is running very low.\r\n\r\nYou currently have " . $balance . ' LBC left in your wallet. In order to keep publishing to the LBRY network, please add some LBC to your account.'; $message = 'Your LBRY Wallet for your WordPress installation at ' . site_url() . ' is running very low.\r\n\r\nYou currently have ' . $balance . ' LBC left in your wallet. In order to keep publishing to the LBRY network, please add some LBC to your account.';
wp_mail( $email, $subject, $message ); wp_mail( $email, $subject, $message );
set_transient( 'lbry_wallet_warning_email', true, DAY_IN_SECONDS ); set_transient( 'lbry_wallet_warning_email', true, DAY_IN_SECONDS );
} }