This is a curtain hook to hold curtains in place during the day.
You can use a screw or double sided tape to attach it to the wall.