Job expired notification email
Today I realized that the expiration emails are sent twice. I have made some small modifications, so that no notification email is sent before expiring, but only when the post changes its status. So the problem is that the function
Code:
jr_notify_job_owner_email($new_status, $old_status, $post)
in theme-emails.php is called twice, which is initiated by the action
Code:
add_action('transition_post_status', 'jr_notify_job_owner_email', 10, 3);
.
So, what could be the problem? Does
WP generates the same event twice when the post expires? I am using JR 1.3.1
Thanks in advance!