akcjaod 2.9.0
load_textdomain
Opis — z kodu źródłowego
Fires before the MO translation file is loaded.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$domain | string | Text domain. Unique identifier for retrieving translated strings. |
$mofile | string | Path to the .mo file. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'load_textdomain', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'load_textdomain', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii