Forums

How to publish (pingomatic, RSS, etc.) a post with PHP? (2 posts)

  1. KnowingArt_com
    Member
    Posted 3 months ago #

    I would like to do something like this:

    $someTitle = "Amazing Title";
    $someText = "<h2>I want this published to my blog.</h2>";
    publish($someTitle, $someText); // update mySQL, pingomatic, RSS, etc.

    Figured I'd ask here before I rip apart wp-admin/post-new.php

  2. KnowingArt_com
    Member
    Posted 3 months ago #

    I saw this function "wp_publish_post( $post_id )" but it obviously doesn't create the post, and I'm not sure what it really does.

    Does it update pingomatic?
    Does it update the RSS feed?

    Call me lazy, I just don't want to reinvent the wheel.

Reply

You must log in to post.

About this Topic

Tags