1. Home
  2. Wordpress
  3. Escape translated text

esc_attr_e prints and escapes translated text.

#wordpress#php
esc_attr_e('Some text');
copy
Full Wordpress cheatsheet