includes/class-freemius.php
private function _handle_account_user_sync() {
            $this->_logger->entrance();

            $api = $this->get_api_user_scope();

            // Get user's information.
            $user = $api->get( '/', true );

            if ( isset( $user->id ) ) {
                $this->_user->first = $user->first;
                $this->_user->last  = $user->last;
                $this->_user->email = $user->email;

                $is_menu_item_account_visible = $this->is_submenu_item_visible( 'account' );

                if ( $user->is_verified &&
                     ( ! isset( $this->_user->is_verified ) || false === $this->_user->is_verified )
                ) {
                    $this->_user->is_verified = true;

                    $this->do_action( 'account_email_verified', $user->email );

                    $this->_admin_notices->add(
                        $this->get_text_inline( 'Your email has been successfully verified - you are AWESOME!', 'email-verified-message' ),
                        $this->get_text_x_inline( 'Right on', 'a positive response', 'right-on' ) . '!',
                        'success',
                        // Make admin sticky if account menu item is invisible,
                        // since the page will be auto redirected to the plugin's
                        // main settings page, and the non-sticky message
                        // will disappear.
                        ! $is_menu_item_account_visible,
                        'email_verified'
                    );
                }

                // Flush user details to DB.
                $this->_store_user();

                $this->do_action( 'after_account_user_sync', $user );

                /**
                 * If account menu item is hidden, redirect to plugin's main settings page.
                 *
                 * @author Vova Feldman (@svovaf)
                 * @since  1.1.6
                 *
                 * @link   https://github.com/Freemius/wordpress-sdk/issues/6
                 */
                if ( ! $is_menu_item_account_visible ) {
                    fs_redirect( $this->_get_admin_page_url() );
                }
            }
        }
private function _handle_account_user_sync() {
            $this->_logger->entrance();

            $api = $this->get_api_user_scope();

            // Get user's information.
            $user = $api->get( '/', true );

            if ( isset( $user->id ) ) {
                $this->_user->first = $user->first;
                $this->_user->last  = $user->last;
                $this->_user->email = $user->email;

                $is_menu_item_account_visible = $this->is_submenu_item_visible( 'account' );

                if ( $user->is_verified &&
                     ( ! isset( $this->_user->is_verified ) || false === $this->_user->is_verified )
                ) {
                    $this->_user->is_verified = true;

                    $this->do_action( 'account_email_verified', $user->email );

                    $this->_admin_notices->add(
                        $this->get_text_inline( 'Your email has been successfully verified - you are AWESOME!', 'email-verified-message' ),
                        $this->get_text_x_inline( 'Right on', 'a positive response', 'right-on' ) . '!',
                        'success',
                        // Make admin sticky if account menu item is invisible,
                        // since the page will be auto redirected to the plugin's
                        // main settings page, and the non-sticky message
                        // will disappear.
                        ! $is_menu_item_account_visible,
                        'email_verified'
                    );
                }

                // Flush user details to DB.
                $this->_store_user();

                $this->do_action( 'after_account_user_sync', $user );

                /**
                 * If account menu item is hidden, redirect to plugin's main settings page.
                 *
                 * @author Vova Feldman (@svovaf)
                 * @since  1.1.6
                 *
                 * @link   https://github.com/Freemius/wordpress-sdk/issues/6
                 */
                if ( ! $is_menu_item_account_visible ) {
                    fs_redirect( $this->_get_admin_page_url() );
                }
            }
        }
private function _handle_account_user_sync ( ) { $ this -> _logger -> entrance ( ) ; $ api = $ this -> get_api_user_scope ( ) ; // Get user's information.
 $ user = $ api -> get ( '/' , true ) ; if ( isset ( $ user -> id ) ) { $ this -> _user -> first = $ user -> first ; $ this -> _user -> last = $ user -> last ; $ this -> _user -> email = $ user -> email ; $ is_menu_item_account_visible = $ this -> is_submenu_item_visible ( 'account' ) ; if ( $ user -> is_verified && ( ! isset ( $ this -> _user -> is_verified ) || false === $ this -> _user -> is_verified ) ) { $ this -> _user -> is_verified = true ; $ this -> do_action ( 'account_email_verified' , $ user -> email ) ; $ this -> _admin_notices -> add ( $ this -> get_text_inline ( 'Your email has been successfully verified - you are AWESOME!' , 'email-verified-message' ) , $ this -> get_text_x_inline ( 'Right on' , 'a positive response' , 'right-on' ) . '!' , 'success' , // Make admin sticky if account menu item is invisible,
 // since the page will be auto redirected to the plugin's
 // main settings page, and the non-sticky message
 // will disappear.
 ! $ is_menu_item_account_visible , 'email_verified' ) ; } // Flush user details to DB.
 $ this -> _store_user ( ) ; $ this -> do_action ( 'after_account_user_sync' , $ user ) ; /**
                 * If account menu item is hidden, redirect to plugin's main settings page.
                 *
                 * @author Vova Feldman (@svovaf)
                 * @since  1.1.6
                 *
                 * @link   https://github.com/Freemius/wordpress-sdk/issues/6
                 */ if ( ! $ is_menu_item_account_visible ) { fs_redirect ( $ this -> _get_admin_page_url ( ) ) ; } } }
Sync user's information.

@author Vova Feldman (@svovaf)
@since  1.0.3
@uses   FS_Api
Sync user s information .