filtrod 3.6.0
get_post_gallery
Opis — z kodu źródłowego
Filters the first-found post gallery.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$gallery | array | The first-found post gallery. |
$post | int | \WP_Post | Post ID or object. |
$galleries | array | Associative array of all found post galleries. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_post_gallery', '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( 'get_post_gallery', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii