filtrod 2.1.0
get_bookmarks
Opis — z kodu źródłowego
Filters the returned list of bookmarks.
The first time the hook is evaluated in this file, it returns the cached bookmarks list. The second evaluation returns a cached bookmarks list if the link category is passed but does not exist. The third evaluation returns the full cached results.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$bookmarks | array | List of the cached bookmarks. |
$parsed_args | array | An array of bookmark query arguments. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_bookmarks', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_bookmarks', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii