How would you write a text string containing “Hello World!” in a way that makes it possible for someone else to translate the string into a different language?

Advertisement

  • apply_filters( ‘Hello World!’, ‘mytextdomain’ );
  • __( ‘Hello World!’, ‘mytextdomain’ );
  • $string = “Hello World!”;
  • esc_html( ‘Hello World!’, ‘mytextdomain’ );
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Leave a Comment


Share via
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.