includes/class-fs-api.php
static function get_error_code( $result ) {
            if ( is_object( $result ) &&
                 isset( $result->error ) &&
                 is_object( $result->error ) &&
                 ! empty( $result->error->code )
            ) {
                return $result->error->code;
            }

            return '';
        }
static function get_error_code( $result ) {
            if ( is_object( $result ) &&
                 isset( $result->error ) &&
                 is_object( $result->error ) &&
                 ! empty( $result->error->code )
            ) {
                return $result->error->code;
            }

            return '';
        }
static function get_error_code ( $ result ) { if ( is_object ( $ result ) && isset ( $ result -> error ) && is_object ( $ result -> error ) && ! empty ( $ result -> error -> code ) ) { return $ result -> error -> code ; } return '' ; }
Get API result error code. If failed to get code, returns an empty string.

@author Vova Feldman (@svovaf)
@since  2.0.0

@param mixed $result

@return string
Get API result error code . If failed to get code returns an empty string .