How to Disable "Listing Expired" Emails

Hi HivePress team,

I’m using HivePress Paid Listings on my site with Hostinger hosting. Hostinger imposes strict email limits (100 emails per day, 10 emails per minute).

The problem is that the plugin sends “Listing Expired” emails automatically for every expired listing, and the volume often exceeds these limits. This causes:

  • System email delivery to fail

  • Users receiving multiple unnecessary emails

  • Other important system notifications being blocked

I’ve tried using filters/snippets like:

add_filter( 'hivepress-paid-listings/v1/emails/listing_expired/send', '__return_false' );
add_filter( 'hivepress/v1/email/send', function( $send, $email ) {
    if ( isset( $email['template'] ) && $email['template'] === 'listing_expired' ) {
        return false;
    }
    return $send;
}, 10, 2 );

…but they don’t work, because the plugin seems to call the email sending function directly inside the cron.

Request:
Could you provide a filter, hook, or setting to disable only “Listing Expired” emails without affecting other email notifications or the Paid Listings functionality (featured listings, package management, etc.)?

This would help manage email limits while keeping all other plugin features fully functional.

Thanks in advance for your support!

Hi @mao,

Re: the documentation, simply find the Listing Expired email template and replace the content with a blank template. This should disable them entirely.

  • How to disable emails - HivePress Help Center

  • "How to disable emails:
    To disable any email notification in HivePress, override it in HivePress > Emails section, but leave the email content empty. HivePress does not send emails without content, so leaving it empty disables the email notification.

I hope this helps!

Cheers,
Chris :victory_hand:

1 Like

Hi,

I believe Chris answered your request. By default, it’s enough to create an empty email template for the desired event under HivePress > Emails, and the notifications will stop being sent.

Please let me know if you need further assistance.

Hi,

Yes, thank you that worked. I wasn’t aware that leaving the email template empty would completely disable the notification.

Appreciate the clarification!

1 Like

Glad that the issue is resolved!

Wishing you a lovely weekend. :herb: