Forums

publish_post & xmlrpc_publish_post support needed (6 posts)

  1. jrgd
    Member
    Posted 1 year ago #

    can someone describe a bit how does xmlrpc_publish_post work? i'm searching the codex but couldn't find any information. is it the same as publish_post?

    the plugin worls just fine when using publish_post and publishing from the wp-admin; nothing appears when publishing from the external client: Mars Edit 1.2.1

    basically i have a twitter updater plugin not firing when publishing from an external client. can anyone give a hand on this? or point to useful resources? thanks in advance

  2. SteveAtty
    Member
    Posted 1 month ago #

    Did you solve this problem?

    I'm trying to use it as follows:

    add_action('publish_post', 'wordbook_publish');
    add_action('xmlrpc_publish_post', 'wordbook_publish');

    The publish_post action works fine but the xmlrpc_publish_post doesn't seem to fire when posting from blogdesk

  3. jrgd
    Member
    Posted 3 weeks ago #

    nothing solved it; i gave up for now but let me know if you find anything useful

  4. SteveAtty
    Member
    Posted 3 weeks ago #

    Well I've tried all sorts of things and nothing works so I guess its actually a defunct hook which is a great pity because it would be a relly useful thing to have

  5. josephscott
    Member
    Posted 3 weeks ago #

    The xmlrpc_publish_post hook is fired as part of the _publish_post_hook() function, which is part of the default filters list for the publish_post action. So it should be firing.

  6. SteveAtty
    Member
    Posted 2 weeks ago #

    Oddly enough it works if I create a chunk of test code but when I use it for real it doesn't seem to work at all

    Edit to add: I think I've found it!

    It doesn't work if you call the same function!

    so

    add_action('xmlrpc_publish_post', 'wordbook_publish');
    add_action('publish_post', 'wordbook_publish');

    doesn't work but

    add_action('xmlrpc_publish_post', 'wordbook_publish_xmlrpc');
    add_action('publish_post', 'wordbook_publish');

    does!

Topic Closed

This topic has been closed to new replies.

About this Topic