• Hi,
    I have a Custom Post Types (‘exhibition’) created with plugin Custom Post Type UI by WebDevStudios.com.
    I create and updated posts with xmlrpc and I’d like to execute some actions when a post is updated.
    I tried to use ‘save_post’ action but it seems does not work.
    Instead, if I update an exhibition post in wordpress backend without using xmlrpc it works fine.

    My code in function.php is, for example:
    add_action( 'save_post_exhibition', 'clear_cache_for_page_id_23965', 10, 1 );

    My site is a network multisite installation.

    I read https://core.trac.wordpress.org/ticket/21192 but I didn’t understand it 🙁
    Anybody can help me?
    Thanks
    Nikka

Viewing 1 replies (of 1 total)
  • Thread Starter NikkaG

    (@nikkag)

    I tried also xmlrpc_publish_post but is seems does not work and didn’t found documentation.

    add_action( 'xmlrpc_publish_post', 'clear_cache_for_page_id_XXX', 10, 1 );

Viewing 1 replies (of 1 total)

The topic ‘save_post does not work with xmlrpc post update’ is closed to new replies.