• Resolved ddoddsr

    (@ddoddsr)


    I have a customer Post type that is mapped to a custom Object in SF.

    When I add a postmeta for a record via update_post_meta in the CPT it appears that it does not trigger an update to SF.

    If I enter the meta data in the Post (via WPAlchemy) and save, it does trigger the update.

    Is this expected? If so what is the method to trigger the update in these case when the postmeta is added by a different process? A wp_update_post?
    If not I have more debugging!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jonathan Stegall

    (@jonathanstegall)

    @ddoddsr for posts/custom post types, the plugin triggers its actions on the save_post or save_post_{$post->post_type} actions. See here and here in the WP docs.

    You probably could make your own hooks to make it run on other events, but as those events wouldn’t be core WordPress events they wouldn’t be in this plugin.

    Thread Starter ddoddsr

    (@ddoddsr)

    Maybe I’ll just fire :
    do_action( "save_post_my_CPT", $post_ID, $post, true )

    thanks for verifying.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Postmeta updated by other actions’ is closed to new replies.