filtrod 2.5.0
wp_sprintf
Opis — z kodu źródłowego
Filters a fragment from the pattern passed to wp_sprintf().
If the fragment is unchanged, then sprintf() will be run on the fragment.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$fragment | string | A fragment from the pattern. |
$arg | string | The argument. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_sprintf', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_sprintf', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii