• Resolved yarnboy

    (@yarnboy)


    Maybe this is right in front of me and I can’t see it, but I’m looking to sync member data from CiviCRM with custom user meta in WordPress. For example, I want to get our members address information into WordPress. Is this possible?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Christian Wach

    (@needle)

    @yarnboy You’ll need to hook into the sync process and update your user’s usermeta at that point. Try hooking into the civi_wp_member_sync_rules_applied action, which passes the WP_User object to the callback.

    Thread Starter yarnboy

    (@yarnboy)

    Thanks for pointing me in the right direction, @needle. Much appreciated.

    Thread Starter yarnboy

    (@yarnboy)

    @needle Sorry to reopen this, but I’m having a problem I was hoping you could address. I was able to successfully hook into the civi_wp_member_sync_rules_applied action, but it does not appear that the memberships array is being passed to my function, as the documentation seems to indicate. According to my error logs, the only argument being passed is the user object.

    Am I missing something?

    Plugin Author Christian Wach

    (@needle)

    @yarnboy I’m guessing that you probably need to specify the number of params:

    add_action( 'civi_wp_member_sync_rules_applied', 10, 3 )

    Cheers, Christian

    Thread Starter yarnboy

    (@yarnboy)

    @needle Ah yes, I neglected that part. Thank you! Works like a charm now.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Sync CiviCRM member data with WP user custom meta data?’ is closed to new replies.