BP_Signup::populate()
Populate the instantiated class with data based on the signup_id provided.
Description
Source
File: bp-members/classes/class-bp-signup.php
102 103 104 105 106 107 108 109 110 111 112 113 114 115 | public function populate() { global $wpdb ; $signups_table = buddypress()->members->table_name_signups; $signup = $wpdb ->get_row( $wpdb ->prepare( "SELECT * FROM {$signups_table} WHERE signup_id = %d AND active = 0" , $this ->id ) ); $this ->avatar = get_avatar( $signup ->user_email, 32 ); $this ->user_login = $signup ->user_login; $this ->user_email = $signup ->user_email; $this ->meta = maybe_unserialize( $signup ->meta ); $this ->user_name = ! empty ( $this ->meta[ 'field_1' ] ) ? wp_unslash( $this ->meta[ 'field_1' ] ) : '' ; $this ->registered = $signup ->registered; $this ->activation_key = $signup ->activation_key; } |
Changelog
Version | Description |
---|---|
BuddyPress 2.0.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.