WP HOOKS
filtrod 2.1.0

get_bookmarks

Args 2Plik wp-includes/bookmark.phpDokumentacja WP ↗

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

ParametrTypOpis
$bookmarksarrayList of the cached bookmarks.
$parsed_argsarrayAn 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
}

Popularne w tej kategorii