I migrated a forum from vbulletin to bbpress but now the customized smileys do not appear but I only see their code such as the writing: cgrd: or: by2:, how can I connect their codes to the smileys that I upload in ftp?
Thank
This topic was modified 4 years, 9 months ago by Jan Dembowski.
You use the “smilies” filter to add your custom smiley code. Refer to the source code for smilies_init() for specifics. https://developer.wordpress.org/reference/functions/smilies_init/
Default smiley code are largely for Unicode smilies, but images are supported. For example :mrgreen:.
The default location for smiley images is not a good place for custom images. Your images will be deleted there during updates. To allow WP to locate the files where ever you place them (child theme, plugin folders, or uploads), use the “smilies_src” filter. https://developer.wordpress.org/reference/hooks/smilies_src/