Forums

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

  1. KnowingArt_com
    Member
    Posted 2 years 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 2 years 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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags