https://blogging.armaila.com/2022/09/deprecated-function-register-widget-control.html