WordPress.org

Support

Support » Plugins and Hacks » Update Blog Authors on Publish

Update Blog Authors on Publish

  • I have a function I use to send email to all of the authors on a blog. This works perfectly on publish, but also happens any time the post is updated.
    I really only want the email sent on “publish” the first time, not every time the author updates the post.
    I’m using the action below to call my email function:

    add_action(‘publish_post’, ‘my_function_name’);

    Is there a better way? Am I missing something?

  • The topic ‘Update Blog Authors on Publish’ is closed to new replies.