Forums

xmlrpc_publish_post (6 posts)

  1. Marcomail
    Member
    Posted 5 years ago #

    I see in wp 2.1 exist this action ...i can call it when a post is saved through and XMLRPC application ? Is similar to publish_post action ?

  2. Otto
    Tech Ninja
    Posted 5 years ago #

    The 'xmlrpc_publish_post' action is called just after 'publish_post' is, but only when a post is published via the xmlrpc method.

    Look at lines 672-674 of post.php and it's fairly obvious.

  3. Marcomail
    Member
    Posted 5 years ago #

    Otto i love you eheheh is possible include this action on wp 2.0.5 ?

  4. Marcomail
    Member
    Posted 5 years ago #

    Why doesn't work ?

    $post_content = sanitize_title($_POST['post_title']);
        $generatedtags = $utw->generateKeywords($post_content);
        $tags = $wpdb->escape($generatedtags);
    	$tags = explode(',',$tags);
    
    	$utw->SaveTags($postID, $tags);

    this script works with the action publish_post but not with xmlrpc_publish_post

  5. Samuel B
    moderator
    Posted 5 years ago #

    Please quit bumping the topic and wait for the answer - it's hardly ever immediate.

  6. Marcomail
    Member
    Posted 5 years ago #

    :(

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.