Skip to:
Content

  • Home
  • Activity
  • Members
  • reference
WB Remedy

Code Reference

  • Home
  • Activity
  • Members
  • reference
Filter by type:
Search
Browse: Home / reference / Classes / BP_Signup / BP_Signup::populate()

BP_Signup::populate()

Populate the instantiated class with data based on the signup_id provided.

Contents

  • Source
  • Related
    • Uses
    • Used By
  • Changelog
  • User Contributed Notes

  • Source #Source

    File: bp-members/classes/class-bp-signup.php

    	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;
    	}
    

    Expand full source code Collapse full source code View on Trac


    Related #Related

    Top ↑

    Uses #Uses

    Uses
    Uses Description
    bp-loader.php: buddypress()

    The main function responsible for returning the one true BuddyPress Instance to functions everywhere.

    Top ↑

    Used By #Used By

    Used By
    Used By Description
    bp-members/classes/class-bp-signup.php: BP_Signup::__construct()

    Class constructor.


    Top ↑

    Changelog #Changelog

    Changelog
    Version Description
    2.0.0 Introduced.

    Top ↑

    User Contributed Notes #User Contributed Notes

    You must log in before being able to contribute a note or feedback.


    See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS

    Follow BuddyPress on Twitter • GPL • Contact Us • Privacy • Terms of Service

    Insert/edit link

    Enter the destination URL

    Or link to existing content

      No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.