WordPress.org

Support

Support » Plugins and Hacks » Hacks » Where does WordPress handle posting?

Where does WordPress handle posting?

  • Hi,

    I’m currently writing a phpBB modification, which basically automates posts in the WordPress blog.

    The website owner, however, installed some plugins and modifications on the WordPress blog, and thus I would like to know if there were any edits in the post submission area. Unfortunately, I don’t have a lot of WordPress experience, and honestly, compared to phpBB, WordPress is a mess.

    To get back to my question, I can’t really find that area. I’d like if someone explains me how and where WordPress handles posting. (I only need the actual function that submits the post into the database. )

    Please don’t link me to this topic since I already read that one. It didn’t answer my question. It almost answered my how question, but didn’t spoke about where it gets handled.

    Thanks in advance,
    Mii

Viewing 3 replies - 1 through 3 (of 3 total)
  • bcworkz
    Participant

    @bcworkz

    The function wp_insert_post() handles the insertion. It is in wp-includes/post.php. Starts around line 2415. The comments describe the post info passed. The actual insertion is around 2589:
    $wpdb->insert( $wpdb->posts, $data );

    Thanks, but in what file is that function written?

    bcworkz
    Participant

    @bcworkz

    It is in wp-includes/post.php

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Where does WordPress handle posting?’ is closed to new replies.