__ (double underscore)

Translation-related functions

Summary

__(string $string)

Translate a string.

Parameters:
  • $string (string) – The string to be translated.
Returns:

string The translated string.

Usage

Examples

echo __("String to translate");

Project Versions

Table Of Contents

Previous topic

Translation-related functions

Next topic

add_translation_source

This Page