wp_notify_postauthor doesn't appear to be active
-
I’ve added mailing triggers to wp_notify_postauthor and wp_notify_moderator to know when each one is called.
Testing procedure
I create test user with role of author.
I author test post by that user.
I post anonymous comment on that post.Expected behavior
I should receive an email to the admin/moderation account triggered by wp_notify_moderator and one to the test user triggered by wp_notify_postauthor.Experienced behavior
I receive emails to both admin and author triggered by wp_notify_moderator. I can’t get the wp_notify_postauthor to fire.Do I misunderstand the expected behavior of these functions? I really want to turn off author notifications, so I thought I could just redefine wp_notify_postauthor to return true but it doesn’t seem to work.
- The topic ‘wp_notify_postauthor doesn't appear to be active’ is closed to new replies.