• Resolved halben

    (@halben)


    I have a quick question/scenerio and if anyone can please point me in the right direction.

    When a member update their profile, the WPDB is updated as well. How can I make/trigger an update to a 3rd party database? (WP already inserts post data to 3rd party DB already)

    Should I use the action hook personal_options_update or edit_user_profile_update (I have custom meta fields)?

    or something like this:

    function my_profile_update( $user_id ) {
        if ( ! isset( $_POST[''] ) || '' == $_POST[''] ) {
            return;
        }
    }
    add_action( 'profile_update', 'db_profile_update' );

    Thanks,
    Halben

Viewing 2 replies - 1 through 2 (of 2 total)
  • My guess is you only need the actions user_register and profile_update, because they are associated with updating the WordPress database. But I do not know how your custom metadata is implemented.

    Thread Starter halben

    (@halben)

    Thanks, that might just work.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Member profile update WPDB and trigger 3rd party DB update question’ is closed to new replies.