Fetching details from the dictionary...

kanji used as a phonetic symbol, instead of for the meaning; phonetic-equivalent character; substitute character; ateji
kanji used for their meaning, irrespective of reading
夜露死苦は当て字の典型的な例である。
Yoroshiku in kanji is a typical example of ateji.
当て字は日本語の面白い特徴の一つだ。
Ateji is one of the interesting features of Japanese.
名前に当て字を使う人が増えている。
More people are using ateji for names.