filtrod 2.2.0
the_meta_key
Opis — z kodu źródłowego
Filters the HTML output of the li element in the post custom fields list.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$html | string | The HTML output for the li element. |
$key | string | Meta key. |
$value | string | Meta value. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'the_meta_key', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'the_meta_key', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii