The MU forums have moved to WordPress.org

xmlrpc_publish_post (2 posts)

  1. SteveAtty
    Member
    Posted 14 years ago #

    I'm asking here, as well as on the WP forums (where its already vanished out of sight!). Maybe the Gurus here will know the answer!

    I'm trying to use xmlrpc_publish_post to intercept posts made by external clients. The Codex is pretty much useless and I've found little of use out there on Google.

    I've got

    add_action('publish_post', 'wordbook_publish');

    which works fine, and I thought that, from what I've read that

    add_action('xmlrpc_publish_post', 'wordbook_publish');

    would do the same but fire when someone posted in via xmlrpc from an external client. But it doesn't seem to work.

    So should it work? Or have I made some fundamental mistake?

  2. SteveAtty
    Member
    Posted 14 years ago #

    It looks like you can't use publish_post and xmlrpc_publish_post to call the same function. If you clone the function but give it a different name it seems to work.

About this Topic

  • Started 14 years ago by SteveAtty
  • Latest reply from SteveAtty