WordPress at Your Fingertips
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_2643', 10, 2 );
function filter_function_name_2643( $results, $query ){
	// filter...

	return $results;

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.
An array of WP_Query arguments.

Where the hook is called

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

Where in WP core the hook is used WordPress

Usage not found.