The MU forums have moved to WordPress.org

insert statements for NEW posts (2 posts)

  1. lukesloot
    Member
    Posted 16 years ago #

    hi there,

    i have mu installed on my domain and allow users to register and create new blogs themselves. i'd like to alter the insert statement when a user creates a new post and simultaneously publishes it. where can i find this insert statement(s). specifically the statement inserts a row into the wp_[X]_posts table. thanks in advance.

    - lucas

  2. mysorehead
    Member
    Posted 16 years ago #

    There is a publish_post action that you can hook into. Which has the postId as an argument. You could use this to update the post at the time of publishing. There may be other hooks but I've used that one before.

    Richard

About this Topic

  • Started 16 years ago by lukesloot
  • Latest reply from mysorehead