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.


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

	return $results;

An associative array of query results.

  • { (array)
    @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.
An array of WP_Query arguments.


Since 3.7.0 Introduced.

Where the hook is called

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

Where in WP core the hook is used

Usage not found!