cupboard love

US /ˈkʌb.ərd ˌlʌv/
UK /ˈkʌb.ərd ˌlʌv/
"cupboard love" picture
1.

affection shown only to get something in return, especially food

:
Her sudden affection for her aunt was just cupboard love, as she knew her aunt had cookies.
The cat only comes to me for cupboard love when it's hungry.