filtrod 3.7.0
wp_link_query
Opis — z kodu źródłowego
Filters the link query results.
Allows modification of the returned link query results.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$results | array | { An array of associative arrays of query results. @type array ...$0 { @type int $ID Post ID. @type string $title The trimmed, escaped post title. @type string $permalink Post permalink. @type string $info A 'Y/m/d'-formatted date for 'post' post type, the 'singular_name' post type label otherwise. } } |
$query | array | An array of WP_Query arguments. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_link_query', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_link_query', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}