__()

Last Updated:
Back to Main Index

This function is used to wrap any hard-coded text strings in your theme or plugin and allows those strings to be translated.

Usage:

Parameters

$text  = (string) (required) Text to translate
$domain  = (string) (optional) Domain to retrieve the translated text

Example

$title = __( 'Section Title', 'mytextdomain' );