WordPress.org

Ready to get started?Download WordPress

Forums

Where does WordPress handle posting? (4 posts)

  1. Mii
    Member
    Posted 2 years ago #

    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

  2. bcworkz
    Member
    Posted 2 years ago #

    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 );

  3. Mii
    Member
    Posted 2 years ago #

    Thanks, but in what file is that function written?

  4. bcworkz
    Member
    Posted 2 years ago #

    It is in wp-includes/post.php

Topic Closed

This topic has been closed to new replies.

About this Topic