You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running code that replaces the "Private: " in titles that are not public.
When I replace it with other text such as "Secret :" all is ok.
When I replace it with an emoji then it shows well in the code there as well as the output page, but as soon as I reload the form to enter the snippet, the emoji disappears (presumably filtered out).
I tried to only run this conditionally on the shop page, and on the product page of that item, but somehow it was not replaced. It was replaced when I ran it sitewide.
Site and server are using UTF-8.
For reference, here's the code I've been using.
function change_private_title_prefix() {
return "EMOJI %s";
}
add_filter('private_title_format', 'change_private_title_prefix');
Apart from that it looks great and I look forward to putting it to good use.
Thanks!
The text was updated successfully, but these errors were encountered:
Hi. It was working indeed (as were my other emojis) but upon refreshing the
page where we enter the snippet, the emoji no longer showed in the snippet
code.
I encountered two problems.
I am running code that replaces the "Private: " in titles that are not public.
When I replace it with an emoji then it shows well in the code there as well as the output page, but as soon as I reload the form to enter the snippet, the emoji disappears (presumably filtered out).
Site and server are using UTF-8.
For reference, here's the code I've been using.
Apart from that it looks great and I look forward to putting it to good use.
Thanks!
The text was updated successfully, but these errors were encountered: