How to bind a c++ variable to widget blueprint

Create a new c++ class that inherits from UUserWidget and create a BlueprintImplementableEvent function to be called to update it’s text, then call this function from the function that you have that changes the FString.