How to handle single quote in a translatable string in WordPress

You can wrap it inside double quotes:

esc_html_e("I couldn't find the page you are looking for.", "themename");

Leave a Comment