filtrod 2.0.0
get_enclosed
Opis — z kodu źródłowego
Filters the list of enclosures already enclosed for the given post.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$pung | string[] | Array of enclosures for the given post. |
$post_id | int | Post ID. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_enclosed', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_enclosed', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii