Making WordPress.org


Ignore:
Timestamp:
11/21/2022 04:19:12 AM (23 months ago)
Author:
dd32
Message:

Profiles: Add a method to allow non-profiles.wordpress.org sites to update xProfile fields.

Pre-set the users profile website field with the data from registration.

See #518.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions-registration.php

    r12218 r12254  
    343343            if ( 'url' == $field ) {
    344344                wp_update_user( array( 'ID' => $user_id, 'user_url' => $value ) );
     345
     346                // Update BuddyPress xProfile data.
     347                if ( function_exists( 'WordPressdotorg\Profiles\update_profile' ) ) {
     348                    WordPressdotorg\Profiles\update_profile( 'Website URL', $value, $user_id );
     349                }
    345350            } else {
    346351                if ( $value ) {
Note: See TracChangeset for help on using the changeset viewer.