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

            if ( $this->_user->is_verified() ) {
                return;
            }

            $api    = $this->get_api_site_scope();
            $result = $api->call( "/users/{$this->_user->id}/verify.json", 'put', array(
                'after_email_confirm_url' => $this->_get_admin_page_url(
                    'account',
                    array( 'fs_action' => 'sync_user' )
                )
            ) );

            if ( ! isset( $result->error ) ) {
                $this->_admin_notices->add( sprintf(
                    $this->get_text_inline( 'Verification mail was just sent to %s. If you can\'t find it after 5 min, please check your spam box.', 'verification-email-sent-message' ),
                    sprintf( '<a href="mailto:%1s">%2s</a>', esc_url( $this->_user->email ), $this->_user->email )
                ) );
            } else {
                // handle different error cases.

            }
        }
private function verify_email() {
            $this->_handle_account_user_sync();

            if ( $this->_user->is_verified() ) {
                return;
            }

            $api    = $this->get_api_site_scope();
            $result = $api->call( "/users/{$this->_user->id}/verify.json", 'put', array(
                'after_email_confirm_url' => $this->_get_admin_page_url(
                    'account',
                    array( 'fs_action' => 'sync_user' )
                )
            ) );

            if ( ! isset( $result->error ) ) {
                $this->_admin_notices->add( sprintf(
                    $this->get_text_inline( 'Verification mail was just sent to %s. If you can\'t find it after 5 min, please check your spam box.', 'verification-email-sent-message' ),
                    sprintf( '<a href="mailto:%1s">%2s</a>', esc_url( $this->_user->email ), $this->_user->email )
                ) );
            } else {
                // handle different error cases.

            }
        }
private function verify_email ( ) { $ this -> _handle_account_user_sync ( ) ; if ( $ this -> _user -> is_verified ( ) ) { return ; } $ api = $ this -> get_api_site_scope ( ) ; $ result = $ api -> call ( "/users/{$this->_user->id}/verify.json" , 'put' , array ( 'after_email_confirm_url' => $ this -> _get_admin_page_url ( 'account' , array ( 'fs_action' => 'sync_user' ) ) ) ) ; if ( ! isset ( $ result -> error ) ) { $ this -> _admin_notices -> add ( sprintf ( $ this -> get_text_inline ( 'Verification mail was just sent to %s. If you can\'t find it after 5 min, please check your spam box.' , 'verification-email-sent-message' ) , sprintf ( '<a href="mailto:%1s">%2s</a>' , esc_url ( $ this -> _user -> email ) , $ this -> _user -> email ) ) ) ; } else { // handle different error cases.
 } }
Verify user email.

@author Vova Feldman (@svovaf)
@since  1.0.3
@uses   FS_Api
Verify user email .