Are you trying to set up a C++ base class for a widget blueprint? If so, remember you need to reparent the blueprint to your new C++ base class (that derives UserWidget). Right now, the parent class of your blueprint is still UserWidget so it won’t have access to anything you’ve added.
Reparenting can be done in the File menu.