WordPress.org

Ready to get started?Download WordPress

Forums

Update Blog Authors on Publish (1 post)

  1. tquizzle
    Member
    Posted 2 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic