WordPress at a glance
filter is not described

wp_link_query filter-hook . WP 3.7.0

Filters the link query results.

Allows modification of the returned link query results.

Usage

add_filter( 'wp_link_query', 'filter_function_name_435', 10, 2 );
function filter_function_name_435( $results, $query ){
	// filter...

	return $results;
}
$results(array)

An array of associative arrays of query results.

  • ...$0(array)

    • ID(int)
      Post ID.

    • title(string)
      The trimmed, escaped post title.

    • permalink(string)
      Post permalink.

    • info(string)
      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.

Список изменений

С версии 3.7.0 Введена.

Где вызывается хук

_WP_Editors::wp_link_query()
wp_link_query
wp-includes/class-wp-editor.php 1810
$results = apply_filters( 'wp_link_query', $results, $query );

Где используется хук в ядре WordPress

Использование не найдено.