1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Duplicate posts Eraser and XML-RPC Interface Problem

Discussion in 'Blogging' started by ghammer, Dec 19, 2012.

  1. ghammer

    ghammer Newbie

    Joined:
    Dec 19, 2012
    Messages:
    2
    Likes Received:
    0
    I use WordPress with the plugin "Duplicate posts Eraser". It works well. But if posts about the XML-RPC interface will be posted, it no longer works. Duplicate posts are entered in the blog even though the plugin is enabled.


    Is there a plugin like "Duplicate posts Eraser", that block double posts, if you post via the XML-RPC interface?

    My English is not so good, sorry.

    greeting ghammer
     
  2. MrBlue

    MrBlue Senior Member

    Joined:
    Dec 18, 2009
    Messages:
    950
    Likes Received:
    662
    Occupation:
    Web/Bot Developer
    The Duplicate Posts Eraser plugin only gets fired when publishing posts via the admin section.
    You need to implement an xmlrpc publish post hook as well.

    Try adding the following to the end of the plugin file(clearDuplicatePosts.php)

    Code:
    add_action('xmlrpc_publish_post', 'clearDuplicatePosts');
     
  3. ghammer

    ghammer Newbie

    Joined:
    Dec 19, 2012
    Messages:
    2
    Likes Received:
    0
    unfortunately does not work. it still double posts are entered. :(