How to Disable Email Notification in the WordPress Cron Job?

This article will show you how to disable the email notification you get whenever the cron job runs.

To disable the notification, you will have to add the line (given below) in the cron job command –

>/dev/null 2>&1   

Below is an example to demonstrate how to add the command –

15 * * * Mon     ${HOME}/ > /dev/null 2>&1   

If you wish to enable the notifications again, you will have to remove the same text from the command –

>/dev/null 2>&1

This is all you have to do to disable the email notification in the WordPress cron job.

Was this answer helpful?

« Back