filtrod 3.6.0
get_post_galleries
Opis — z kodu źródłowego
Filters the list of all found galleries in the given post.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$galleries | array | Associative array of all found post galleries. |
$post | \WP_Post | Post object. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_post_galleries', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_post_galleries', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii