Metaphorical code-switching is just like when you adjust the way you talk and act depending on who you are talking to or where you are. For example, when you are with your friends, you might talk and act differently than when you are with grown-ups. This is because you know different people expect different things from you, and you want to make sure you fit in with them.
Similarly, when people use metaphorical code-switching, they change the way they talk or behave based on the situation they are in. This can be helpful when you want to communicate with different groups of people using different ways of speaking or different types of language. For instance, when a person is in a meeting with their boss, they might speak more formally and use professional jargon to make a good impression. But when they are with friends, they might speak more casually and use slang or inside jokes that they both understand.
Overall, metaphorical code-switching is a way of adapting your language and communication style to fit different social situations or audiences. It can help you better connect with others and avoid misunderstandings.