WP HOOKS
filtrod 3.7.0

wp_link_query

Args 2Plik wp-includes/class-wp-editor.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the link query results.

Allows modification of the returned link query results.

Parametry

ParametrTypOpis
$resultsarray{ 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. } }
$queryarrayAn 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
}